summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c98b332)
raw | patch | inline | side by side (parent: c98b332)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 6 Jun 2017 13:49:14 +0000 (16:49 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 6 Jun 2017 13:49:57 +0000 (16:49 +0300) |
src/game/g_game.pas | patch | blob | history | |
src/game/g_netmsg.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 4cfb4a2106b8f080662e8c8dffe66de05e87abaa..916602132bc0127a3268d6e6cc8c47e9fedadd12 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
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
diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas
index e5cd723488af9bec0802f13af252346ec73b9e6a..64377a61057e6bdb31f473bf08f0d88fd07a94b0 100644 (file)
--- a/src/game/g_netmsg.pas
+++ b/src/game/g_netmsg.pas
begin
// new strafe mechanics
if (strafeDir = 0) then strafeDir := P1MoveButton; // start strafing
- // now set direction according to strafe
- if (strafeDir = 1) then gPlayer1.SetDirection(D_LEFT)
- else if (strafeDir = 2) then gPlayer1.SetDirection(D_RIGHT)
- else if P1MoveButton <> 0 then gPlayer1.SetDirection(TDirection(P1MoveButton-1));
+ // now set direction according to strafe (reversed)
+ if (strafeDir = 2) then gPlayer1.SetDirection(D_LEFT)
+ else if (strafeDir = 1) then gPlayer1.SetDirection(D_RIGHT);
end
else
begin