mirror of
https://github.com/minetest/minetest.git
synced 2024-11-05 07:13:46 +01:00
Fix player controls only being applied for the first move
This commit is contained in:
parent
6e4d8de104
commit
ebb721a476
@ -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);
|
||||
|
||||
|
@ -216,6 +216,9 @@ void ClientEnvironment::step(float dtime)
|
||||
*/
|
||||
|
||||
{
|
||||
// Control local player
|
||||
lplayer->applyControl(dtime_part, this);
|
||||
|
||||
// Apply physics
|
||||
if (!free_move && !is_climbing) {
|
||||
// Gravity
|
||||
|
Loading…
Reference in New Issue
Block a user