diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 110111e6ca492084d47e8488d0a32138a9c66359..4cfb4a2106b8f080662e8c8dffe66de05e87abaa 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
// 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