DEADSOFTWARE

fixed strafe button crash; fixed analog triggers
[d2df-sdl.git] / src / game / g_game.pas
index 110111e6ca492084d47e8488d0a32138a9c66359..4cfb4a2106b8f080662e8c8dffe66de05e87abaa 100644 (file)
@@ -1259,7 +1259,7 @@ begin
       // now set direction according to strafe
            if (strafeDir = 1) then plr.SetDirection(D_LEFT)
       else if (strafeDir = 2) then plr.SetDirection(D_RIGHT)
-      else plr.SetDirection(TDirection(MoveButton-1));
+      else if MoveButton <> 0 then plr.SetDirection(TDirection(MoveButton-1));
     end
     else
     begin