X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmsg.pas;h=e5cd723488af9bec0802f13af252346ec73b9e6a;hb=c98b33270a7b8f65385b754ff17f5f2338fa39e2;hp=1b80ddd13aba6f9a9d031aa5ff3a172ed3002c92;hpb=386dec8dac5d12bacc6f1ccf216cd015ff583457;p=d2df-sdl.git diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index 1b80ddd..e5cd723 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -2808,7 +2808,7 @@ begin // now set direction according to strafe if (strafeDir = 1) then gPlayer1.SetDirection(D_LEFT) else if (strafeDir = 2) then gPlayer1.SetDirection(D_RIGHT) - else gPlayer1.SetDirection(TDirection(P1MoveButton-1)); + else if P1MoveButton <> 0 then gPlayer1.SetDirection(TDirection(P1MoveButton-1)); end else begin