Fix movement desync

I think this should fix all movements desyncs
coverity_scan^2
Stanislav Zhukov 9 years ago committed by GitHub
parent ab309180c2
commit fe50394f4d

@ -181,7 +181,7 @@ void DedicatedPlayer::Move(float dt)
ref_pos.pos[0] = lerp.x();
ref_pos.pos[1] = lerp.y();
ref_pos.pos[2] = lerp.z();
ptr.getRefData().setPosition(ref_pos);
world->moveObject(ptr, ref_pos.pos[0], ref_pos.pos[1], ref_pos.pos[2]);
}
MWMechanics::Movement *move = &ptr.getClass().getMovementSettings(ptr);

Loading…
Cancel
Save