From 36f753df8f90b8d64563b502882ced974ff81881 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Nov 2022 19:47:10 +0100 Subject: [PATCH] - RR: fixed weapon switching code. --- source/games/duke/src/player_r.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index d601d7e81..3a5055d71 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -3945,12 +3945,14 @@ HORIZONLY: //Shooting code/changes if (p->show_empty_weapon > 0) + { p->show_empty_weapon--; - if (p->show_empty_weapon == 0 && (WeaponSwitch(p - ps) & 2)) - { - fi.addweapon(p, p->last_full_weapon, true); - return; + if (p->show_empty_weapon == 0 && (WeaponSwitch(p - ps) & 2)) + { + fi.addweapon(p, p->last_full_weapon, true); + return; + } } dokneeattack(snum, { FEM10, NAKED1, STATUE });