fix a mistake I made when rewriting this code

This commit is contained in:
radius 2017-11-24 08:40:29 -05:00
parent 2916e6c7ac
commit 88e84d1c79

View File

@ -2194,29 +2194,32 @@ void cheevos_populate_menu(void *data)
end = cheevos_locals.unofficial.cheevos end = cheevos_locals.unofficial.cheevos
+ cheevos_locals.unofficial.count; + cheevos_locals.unofficial.count;
if (!(cheevo->active & CHEEVOS_ACTIVE_HARDCORE)) for (i = cheevos_locals.core.count; cheevo < end; i++, cheevo++)
{ {
menu_entries_append_enum(info->list, cheevo->title, if (!(cheevo->active & CHEEVOS_ACTIVE_HARDCORE))
cheevo->description, MENU_ENUM_LABEL_CHEEVOS_UNLOCKED_ENTRY_HARDCORE, {
MENU_SETTINGS_CHEEVOS_START + i, 0, 0); menu_entries_append_enum(info->list, cheevo->title,
items_found++; cheevo->description, MENU_ENUM_LABEL_CHEEVOS_UNLOCKED_ENTRY_HARDCORE,
set_badge_info(&badges_ctx, i, cheevo->badge, (cheevo->active & CHEEVOS_ACTIVE_HARDCORE)); MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
} items_found++;
else if (!(cheevo->active & CHEEVOS_ACTIVE_SOFTCORE)) set_badge_info(&badges_ctx, i, cheevo->badge, (cheevo->active & CHEEVOS_ACTIVE_HARDCORE));
{ }
menu_entries_append_enum(info->list, cheevo->title, else if (!(cheevo->active & CHEEVOS_ACTIVE_SOFTCORE))
cheevo->description, MENU_ENUM_LABEL_CHEEVOS_UNLOCKED_ENTRY, {
MENU_SETTINGS_CHEEVOS_START + i, 0, 0); menu_entries_append_enum(info->list, cheevo->title,
items_found++; cheevo->description, MENU_ENUM_LABEL_CHEEVOS_UNLOCKED_ENTRY,
set_badge_info(&badges_ctx, i, cheevo->badge, (cheevo->active & CHEEVOS_ACTIVE_SOFTCORE)); MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
} items_found++;
else set_badge_info(&badges_ctx, i, cheevo->badge, (cheevo->active & CHEEVOS_ACTIVE_SOFTCORE));
{ }
menu_entries_append_enum(info->list, cheevo->title, else
cheevo->description, MENU_ENUM_LABEL_CHEEVOS_LOCKED_ENTRY, {
MENU_SETTINGS_CHEEVOS_START + i, 0, 0); menu_entries_append_enum(info->list, cheevo->title,
items_found++; cheevo->description, MENU_ENUM_LABEL_CHEEVOS_LOCKED_ENTRY,
set_badge_info(&badges_ctx, i, cheevo->badge, (cheevo->active & CHEEVOS_ACTIVE_SOFTCORE)); MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
items_found++;
set_badge_info(&badges_ctx, i, cheevo->badge, (cheevo->active & CHEEVOS_ACTIVE_SOFTCORE));
}
} }
} }