pal-final: Get game segment fully matching

This commit is contained in:
Ryan Dwyer
2021-03-12 22:59:47 +10:00
parent 7b96f14c14
commit f1d924deb2
69 changed files with 27080 additions and 620 deletions
+2 -2
View File
@@ -735,8 +735,8 @@ void amGetSlotDetails(s32 slot, u32 *flags, char *label)
if (invGetWeaponNumByIndex(g_AmMenus[g_AmIndex].invindexes[slot]) == WEAPON_CLOAKINGDEVICE) {
// Special case: "Cloak %d"
qty = currentPlayerGetAmmoCountWithCheck(AMMOTYPE_CLOAK);
secs = qty / 60;
modulo = (qty - (secs * 60)) * 100 / 60;
secs = qty / PALDOWN(60);
modulo = (qty - (secs * PALDOWN(60))) * 100 / PALDOWN(60);
sprintf(label, langGet(L_OPTIONS_491), secs + (modulo > 0 ? 1 : 0)); // "cloak %d"
} else {
strcpy(label, invGetShortNameByIndex(g_AmMenus[g_AmIndex].invindexes[slot]));