X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fammo.qc;h=bd9aa1a21ca53afe3837d12bdf1fef3771ac4940;hb=014563bb18d2fca287bd53fbde65b057e4ec6eef;hp=ce700586caad1efe174acea70a0a85f06b2a0ced;hpb=2bddfb42fdbb3318aa319d228d8c99adcc90b128;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/ammo.qc b/qcsrc/client/hud/panel/ammo.qc index ce700586c..bd9aa1a21 100644 --- a/qcsrc/client/hud/panel/ammo.qc +++ b/qcsrc/client/hud/panel/ammo.qc @@ -23,7 +23,7 @@ void DrawNadeProgressBar(vector myPos, vector mySize, float progress, vector col void DrawAmmoItem(vector myPos, vector mySize, int ammoType, bool isCurrent, bool isInfinite) { TC(bool, isCurrent); TC(bool, isInfinite); - if(ammoType == RESOURCE_NONE) + if(ammoType == RES_NONE) return; // Initialize variables @@ -31,7 +31,7 @@ void DrawAmmoItem(vector myPos, vector mySize, int ammoType, bool isCurrent, boo int ammo; if(autocvar__hud_configure) { - isCurrent = (ammoType == RESOURCE_ROCKETS); // Rockets always current + isCurrent = (ammoType == RES_ROCKETS); // Rockets always current ammo = 60; } else @@ -183,7 +183,7 @@ void HUD_Ammo() { if(autocvar__hud_configure) { - DrawAmmoItem(pos, ammo_size, RESOURCE_ROCKETS, true, false); + DrawAmmoItem(pos, ammo_size, RES_ROCKETS, true, false); } else {