X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=916602132bc0127a3268d6e6cc8c47e9fedadd12;hp=4cfb4a2106b8f080662e8c8dffe66de05e87abaa;hb=553f1a9537d6a507020b70c171153ce6c38aeba2;hpb=c98b33270a7b8f65385b754ff17f5f2338fa39e2 diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 4cfb4a2..9166021 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -1256,10 +1256,9 @@ begin begin // new strafe mechanics if (strafeDir = 0) then strafeDir := MoveButton; // start strafing - // now set direction according to strafe - if (strafeDir = 1) then plr.SetDirection(D_LEFT) - else if (strafeDir = 2) then plr.SetDirection(D_RIGHT) - else if MoveButton <> 0 then plr.SetDirection(TDirection(MoveButton-1)); + // now set direction according to strafe (reversed) + if (strafeDir = 2) then plr.SetDirection(D_LEFT) + else if (strafeDir = 1) then plr.SetDirection(D_RIGHT); end else begin