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
int ammo;
if(autocvar__hud_configure)
{
- isCurrent = (ammoType == RESOURCE_ROCKETS); // Rockets always current
+ isCurrent = (ammoType == RES_ROCKETS); // Rockets always current
ammo = 60;
}
else
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
{