DEADSOFTWARE

added temporary hack for cyclic switching (remove it after readyweaon&pendinweapon...
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 10 Apr 2019 16:16:29 +0000 (19:16 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 10 Apr 2019 16:16:29 +0000 (19:16 +0300)
src/game/g_game.pas
src/game/g_netmsg.pas

index 114c692242e50d3b5213bb7639579c7d324540ff..b3c00635e29cf462295f45fcda3138c89d2f9414 100644 (file)
@@ -1562,6 +1562,9 @@ begin
   if gPlayerAction[p, ACTION_WEAPPREV] then plr.PressKey(KEY_PREVWEAPON);
   if gPlayerAction[p, ACTION_ACTIVATE] then plr.PressKey(KEY_OPEN);
 
+  gPlayerAction[p, ACTION_WEAPNEXT] := False; // HACK, remove after readyweaon&pendinweapon implementation
+  gPlayerAction[p, ACTION_WEAPPREV] := False; // HACK, remove after readyweaon&pendinweapon implementation
+
   for i := WP_FIRST to WP_LAST do
   begin
     if gSelectWeapon[p, i] then
index 1bb60c2d53a4aa234445cb1e56a8090f677b1c35..0ea771329dbf0358acd332b70e85d8e4fe24e90c 100644 (file)
@@ -2858,6 +2858,9 @@ begin
     if gPlayerAction[0, ACTION_WEAPNEXT] then kByte := kByte or NET_KEY_NW;
     if gPlayerAction[0, ACTION_WEAPPREV] then kByte := kByte or NET_KEY_PW;
 
+    gPlayerAction[0, ACTION_WEAPNEXT] := False; // HACK, remove after readyweaon&pendinweapon implementation
+    gPlayerAction[0, ACTION_WEAPPREV] := False; // HACK, remove after readyweaon&pendinweapon implementation
+
     for i := WP_FIRST to WP_LAST do
     begin
       if gSelectWeapon[0, i] then