Rename PALDOWN macro to TICKS

This commit is contained in:
Ryan Dwyer
2022-03-10 21:22:05 +10:00
parent 960baf33a8
commit f9fbf288f8
49 changed files with 350 additions and 350 deletions
+2 -2
View File
@@ -432,8 +432,8 @@ void amGetSlotDetails(s32 slot, u32 *flags, char *label)
if (invGetWeaponNumByIndex(g_AmMenus[g_AmIndex].invindexes[slot]) == WEAPON_CLOAKINGDEVICE) {
// Special case: "Cloak %d"
qty = bgunGetReservedAmmoCount(AMMOTYPE_CLOAK);
secs = qty / PALDOWN(60);
modulo = (qty - (secs * PALDOWN(60))) * 100 / PALDOWN(60);
secs = qty / TICKS(60);
modulo = (qty - (secs * TICKS(60))) * 100 / TICKS(60);
sprintf(label, langGet(L_OPTIONS_491), secs + (modulo > 0 ? 1 : 0)); // "cloak %d"
} else {
strcpy(label, invGetShortNameByIndex(g_AmMenus[g_AmIndex].invindexes[slot]));