Skip to content

Commit

Permalink
Only go fast in autorun if fast move is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Nov 3, 2015
1 parent 6ba4f37 commit 1550ab3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/localplayer.cpp
Expand Up @@ -512,15 +512,16 @@ void LocalPlayer::applyControl(float dtime)
}
}

if(continuous_forward)
if (continuous_forward)
speedH += move_direction;

if(control.up)
{
if(continuous_forward)
superspeed = true;
else
if (control.up) {
if (continuous_forward) {
if (fast_move)
superspeed = true;
} else {
speedH += move_direction;
}
}
if(control.down)
{
Expand Down

0 comments on commit 1550ab3

Please sign in to comment.