]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/localplayer.cpp
Mgfractal: Move julia set selection into formula parameter
[dragonfireclient.git] / src / localplayer.cpp
index 96e2737c78156cd80e8336ff637afb3ed1423682..fd781f940f6f3c255d8edf0ff01a88c77d311655 100644 (file)
@@ -42,6 +42,7 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef, const char *name):
        last_pitch(0),
        last_yaw(0),
        last_keyPressed(0),
+       camera_impact(0.f),
        last_animation(NO_ANIM),
        hotbar_image(""),
        hotbar_selected_image(""),
@@ -512,15 +513,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)
        {