From b7cb3ffa883154c1212d5ffc4f025cb68689f6bf Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Sat, 1 May 2010 21:17:11 +0000 Subject: [PATCH] - Fixed: If a weapon didn't use ammo the result of weaponammo was accidentally negated. SVN r2309 (trunk) --- src/g_shared/sbarinfo_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_shared/sbarinfo_commands.cpp b/src/g_shared/sbarinfo_commands.cpp index 5123dfaac..6e9c71146 100644 --- a/src/g_shared/sbarinfo_commands.cpp +++ b/src/g_shared/sbarinfo_commands.cpp @@ -2558,7 +2558,7 @@ class CommandWeaponAmmo : public SBarInfoCommandFlowControl const PClass *AmmoType2 = statusBar->CPlayer->ReadyWeapon->AmmoType2; bool usesammo1 = (AmmoType1 != NULL); bool usesammo2 = (AmmoType2 != NULL); - if(!negate && !usesammo1 && !usesammo2) //if the weapon doesn't use ammo don't go though the trouble. + if(negate && !usesammo1 && !usesammo2) //if the weapon doesn't use ammo don't go though the trouble. { SBarInfoCommandFlowControl::Draw(block, statusBar); return;