mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-23 04:22:16 +00:00
- hotfix for compiler bug with optimized out if statement.
This needs to be investigated, this hotfix is merely to get it running again for now.
This commit is contained in:
parent
28e451311b
commit
d6a7721802
1 changed files with 2 additions and 1 deletions
|
@ -519,7 +519,8 @@ class RedneckStatusBar : DukeCommonStatusBar
|
|||
for(int i = 0; i < ammoOrder.Size(); i++)
|
||||
{
|
||||
int ammonum = ammoorder[i];
|
||||
if (ammonum == RRWpn.CHICKEN_WEAPON && !isRRRA()) continue;
|
||||
bool myisRRRA = isRRRA(); // temporary hotfix for a compiler bug. The next line makes the compiler assert if it gets optimized out when RRRA is being played.
|
||||
//if (ammonum == RRWpn.CHICKEN_WEAPON && !myisRRRA) continue;
|
||||
if (ammonum == RRWpn.MOTORCYCLE_WEAPON && !p.OnMotorcycle) continue;
|
||||
if (ammonum == RRWpn.BOAT_WEAPON && !p.OnBoat) continue;
|
||||
// dynamite and crossbow dynamite ammo types are coupled.
|
||||
|
|
Loading…
Reference in a new issue