X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fammo.qc;h=95ceced82c74d7ca6a39adc2084de9e950c85a2c;hp=0636f3f2e972cfc551eb991b4631732d90aa79ab;hb=590a5297bd4ad3b00dde7efc20d6cc860be4f853;hpb=b945d959784e5b249c66aea4f3326d8ae048f1cd diff --git a/qcsrc/client/hud/panel/ammo.qc b/qcsrc/client/hud/panel/ammo.qc index 0636f3f2e..95ceced82 100644 --- a/qcsrc/client/hud/panel/ammo.qc +++ b/qcsrc/client/hud/panel/ammo.qc @@ -6,6 +6,7 @@ #include #include #include +#include // Ammo (#1) @@ -19,12 +20,10 @@ void DrawNadeProgressBar(vector myPos, vector mySize, float progress, vector col autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL); } -void DrawAmmoNades(vector myPos, vector mySize, bool draw_expanding, float expand_time); // TODO: mutator - void DrawAmmoItem(vector myPos, vector mySize, int ammoType, bool isCurrent, bool isInfinite) { - TC(bool, isCurrent); TC(bool, isInfinite); - if(ammoType == RESOURCE_NONE) + TC(bool, isCurrent); TC(bool, isInfinite); + if(ammoType == RES_NONE) return; // Initialize variables @@ -32,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 @@ -178,13 +177,13 @@ void HUD_Ammo() Weapon wep = wepent.switchweapon; int i; - bool infinite_ammo = (STAT(ITEMS) & IT_UNLIMITED_WEAPON_AMMO); + bool infinite_ammo = (STAT(ITEMS) & IT_UNLIMITED_AMMO); row = column = 0; if(autocvar_hud_panel_ammo_onlycurrent) { if(autocvar__hud_configure) { - DrawAmmoItem(pos, ammo_size, RESOURCE_ROCKETS, true, false); + DrawAmmoItem(pos, ammo_size, RES_ROCKETS, true, false); } else {