From f2bc7caad914ab4dd435a557dea033671a1be5bc Mon Sep 17 00:00:00 2001 From: Jamiras Date: Mon, 8 Nov 2021 07:09:57 -0700 Subject: [PATCH] ignore unofficial achievements unless setting is enabled --- cheevos/cheevos_client.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cheevos/cheevos_client.c b/cheevos/cheevos_client.c index a80dd50f0c..54418ac566 100644 --- a/cheevos/cheevos_client.c +++ b/cheevos/cheevos_client.c @@ -720,15 +720,16 @@ static void rcheevos_client_copy_achievements( if (definition->category != 3) { - achievement->active = RCHEEVOS_ACTIVE_UNOFFICIAL; + if (!settings->bools.cheevos_test_unofficial) + continue; - if (settings->bools.cheevos_test_unofficial) - achievement->active |= RCHEEVOS_ACTIVE_SOFTCORE - | RCHEEVOS_ACTIVE_HARDCORE; + achievement->active = RCHEEVOS_ACTIVE_UNOFFICIAL + | RCHEEVOS_ACTIVE_SOFTCORE + | RCHEEVOS_ACTIVE_HARDCORE; } else { - achievement->active = RCHEEVOS_ACTIVE_SOFTCORE + achievement->active = RCHEEVOS_ACTIVE_SOFTCORE | RCHEEVOS_ACTIVE_HARDCORE; for (j = 0; j <