DEADSOFTWARE

Player: Fix weapon cycling bitmask
authorStas'M <x86corez@gmail.com>
Sun, 23 Sep 2018 23:51:36 +0000 (02:51 +0300)
committerStas'M <x86corez@gmail.com>
Sun, 23 Sep 2018 23:51:36 +0000 (02:51 +0300)
src/game/g_player.pas

index 7d81725f7dddd40549fa18ba20020c4b177af339..1a10f7b8ebba0a78fa964b8100dca3bd6fe3d191 100644 (file)
@@ -3724,7 +3724,7 @@ begin
   if not switchAllowed then
   begin
     //HACK for weapon cycling
-    if (FNextWeap and $7000) <> 0 then FNextWeap := 0;
+    if (FNextWeap and $E000) <> 0 then FNextWeap := 0;
     exit;
   end;