X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=4cfb4a2106b8f080662e8c8dffe66de05e87abaa;hp=110111e6ca492084d47e8488d0a32138a9c66359;hb=c98b33270a7b8f65385b754ff17f5f2338fa39e2;hpb=386dec8dac5d12bacc6f1ccf216cd015ff583457 diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 110111e..4cfb4a2 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -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