1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix player controls only being applied for the first move

This commit is contained in:
TheTermos 2020-07-03 17:21:42 +02:00 committed by sfan5
parent 6e4d8de104
commit ebb721a476
2 changed files with 4 additions and 4 deletions

View file

@ -459,12 +459,9 @@ void Client::step(float dtime)
/*
Handle environment
*/
// Control local player (0ms)
LocalPlayer *player = m_env.getLocalPlayer();
assert(player);
player->applyControl(dtime, &m_env);
// Step environment
// Step environment (also handles player controls)
m_env.step(dtime);
m_sound->step(dtime);