From 73705801e4aa7b09e0614382352aca47548f00d9 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 14 Oct 2022 12:18:03 +1100 Subject: [PATCH] - Duke: Move 3x WW2GI aplWeaponTotalTime() calls to the stored one. --- source/games/duke/src/hudweapon_d.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/duke/src/hudweapon_d.cpp b/source/games/duke/src/hudweapon_d.cpp index ec68b9d15..0d046f733 100644 --- a/source/games/duke/src/hudweapon_d.cpp +++ b/source/games/duke/src/hudweapon_d.cpp @@ -340,7 +340,7 @@ void displayweapon_d(int snum, double interpfrac) if (*kb > 0) { - if (*kb < (isWW2GI() ? aplWeaponTotalTime(RPG_WEAPON, snum) : 8)) + if (*kb < (isWW2GI() ? weapTotalTime : 8)) { hud_drawpal(164 + offsets.X, 176 + offsets.Y, RPGGUN + (*kb >> 1), shade, o | pin, pal, angle); } @@ -385,7 +385,7 @@ void displayweapon_d(int snum, double interpfrac) { // Just fall through here. } - else if (*kb <= aplWeaponTotalTime(SHOTGUN_WEAPON, snum)) + else if (*kb <= weapTotalTime) { pic += 1; } @@ -491,7 +491,7 @@ void displayweapon_d(int snum, double interpfrac) { hud_drawpal(178 + offsets.X, 233 + offsets.Y, CHAINGUN + 1, shade, o, pal, angle); } - else if (*kb <= aplWeaponTotalTime(CHAINGUN_WEAPON, snum)) + else if (*kb <= weapTotalTime) { hud_drawpal(188 + offsets.X, 243 + offsets.Y, CHAINGUN + 2, shade, o, pal, angle); }