Merge pull request #12565 from Jamiras/measured_unlock

(cheevos) reset cached progress each time menu is opened
This commit is contained in:
Autechre 2021-06-24 05:48:23 +02:00 committed by GitHub
commit 0785d4aa72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,8 @@ enum rcheevos_menuitem_bucket
static void rcheevos_menu_update_bucket(rcheevos_racheevo_t* cheevo)
{
cheevo->menu_progress = 0;
if (!cheevo->memaddr)
{
/* non-active unsupported achievement */
@ -66,7 +68,6 @@ static void rcheevos_menu_update_bucket(rcheevos_racheevo_t* cheevo)
/* active achievement */
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_LOCKED;
cheevo->menu_progress = 0;
trigger = rc_runtime_get_achievement(&rcheevos_locals->runtime, cheevo->id);
if (trigger)