Only go fast in autorun if fast move is enabled
authorest31 <MTest31@outlook.com>
Tue, 3 Nov 2015 14:29:52 +0000 (15:29 +0100)
committerest31 <MTest31@outlook.com>
Tue, 3 Nov 2015 14:40:47 +0000 (15:40 +0100)
src/localplayer.cpp

index 96e2737c78156cd80e8336ff637afb3ed1423682..e55464479aa177b6042d949230ff74aad038b5bc 100644 (file)
@@ -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)
        {