aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/localplayer.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 96e2737c7..e55464479 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -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)
{