DEADSOFTWARE

fixed strafe according to Jabberwock note; also, removed redunant code line
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 6 Jun 2017 13:49:14 +0000 (16:49 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 6 Jun 2017 13:49:57 +0000 (16:49 +0300)
src/game/g_game.pas
src/game/g_netmsg.pas

index 4cfb4a2106b8f080662e8c8dffe66de05e87abaa..916602132bc0127a3268d6e6cc8c47e9fedadd12 100644 (file)
@@ -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
index e5cd723488af9bec0802f13af252346ec73b9e6a..64377a61057e6bdb31f473bf08f0d88fd07a94b0 100644 (file)
@@ -2805,10 +2805,9 @@ begin
       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