From: est31 Date: Tue, 3 Nov 2015 14:29:52 +0000 (+0100) Subject: Only go fast in autorun if fast move is enabled X-Git-Tag: 0.4.14~539 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1550ab3c5d17787bcb9885c045db2f07aa4971ac;p=oweals%2Fminetest.git Only go fast in autorun if fast move is enabled --- 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) {