Merge pull request #12727 from Jamiras/reset_challenge

(cheevos) hide challenge indicators when resetting
This commit is contained in:
Autechre 2021-08-02 15:47:41 +02:00 committed by GitHub
commit f4b79ad13d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -671,11 +671,21 @@ void rcheevos_reset_game(bool widgets_ready)
/* Hide any visible trackers */
if (widgets_ready)
{
rcheevos_ralboard_t* lboard = rcheevos_locals.patchdata.lboards;
rcheevos_ralboard_t* lboard;
rcheevos_racheevo_t* cheevo;
unsigned i;
lboard = rcheevos_locals.patchdata.lboards;
for (i = 0; i < rcheevos_locals.patchdata.lboard_count; ++i, ++lboard)
gfx_widgets_set_leaderboard_display(lboard->id, NULL);
cheevo = rcheevos_locals.patchdata.core;
for (i = 0; i < rcheevos_locals.patchdata.core_count; ++i, ++cheevo)
gfx_widgets_set_challenge_display(cheevo->id, NULL);
cheevo = rcheevos_locals.patchdata.unofficial;
for (i = 0; i < rcheevos_locals.patchdata.unofficial_count; ++i, ++cheevo)
gfx_widgets_set_challenge_display(cheevo->id, NULL);
}
#endif