Prevented WF's rotating platform from desyncing angle

This commit is contained in:
MysterD 2020-10-04 14:32:52 -07:00
parent d7c43aeb95
commit edd489eb49
1 changed files with 2 additions and 0 deletions

View File

@ -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 {