]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Never black out the current ammo, even if empty. A red zero is easier to see and...
authorSeverin Meyer <sev.ch@web.de>
Sun, 18 Jan 2015 23:12:55 +0000 (00:12 +0100)
committerSeverin Meyer <sev.ch@web.de>
Sun, 18 Jan 2015 23:12:55 +0000 (00:12 +0100)
qcsrc/client/hud.qc

index f9f35740b95aaee7c6e32106303054caf105bfce..c668e5666377b44dbb25981edd35e0e04dcd1a45 100644 (file)
@@ -907,7 +907,7 @@ void DrawAmmoItem(vector myPos, vector mySize, .float ammoType, float isCurrent,
                textPos = myPos + eX * mySize_y;
        }
 
-       float isShadowed = (ammo <= 0 && !isInfinite);
+       float isShadowed = (ammo <= 0 && !isCurrent && !isInfinite);
 
        vector iconColor = isShadowed ? '0 0 0' : '1 1 1';
        vector textColor;