mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Only go fast in autorun if fast move is enabled
This commit is contained in:
parent
6ba4f3775e
commit
1550ab3c5d
1 changed files with 7 additions and 6 deletions
|
@ -512,15 +512,16 @@ void LocalPlayer::applyControl(float dtime)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(continuous_forward)
|
if (continuous_forward)
|
||||||
speedH += move_direction;
|
speedH += move_direction;
|
||||||
|
|
||||||
if(control.up)
|
if (control.up) {
|
||||||
{
|
if (continuous_forward) {
|
||||||
if(continuous_forward)
|
if (fast_move)
|
||||||
superspeed = true;
|
superspeed = true;
|
||||||
else
|
} else {
|
||||||
speedH += move_direction;
|
speedH += move_direction;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(control.down)
|
if(control.down)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue