mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Prevented WF's rotating platform from desyncing angle
This commit is contained in:
parent
d7c43aeb95
commit
edd489eb49
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ void bhv_wf_rotating_wooden_platform_loop(void) {
|
|||
network_init_object_field(o, &o->oAction);
|
||||
network_init_object_field(o, &o->oAngleVelYaw);
|
||||
network_init_object_field(o, &o->oFaceAngleYaw);
|
||||
network_init_object_field(o, &o->oMoveAngleYaw);
|
||||
network_init_object_field(o, &o->oTimer);
|
||||
}
|
||||
|
||||
|
|
@ -21,6 +22,7 @@ void bhv_wf_rotating_wooden_platform_loop(void) {
|
|||
o->oAngleVelYaw = 0;
|
||||
if (o->oTimer > 60 && network_owns_object(o)) {
|
||||
o->oAction++;
|
||||
o->oFaceAngleYaw = (o->oFaceAngleYaw & 0x8000);
|
||||
network_send_object(o);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue