From 8dc4971c2a6303c148cf7a0bb5888dd161da79da Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 24 Feb 2023 19:06:45 +0000 Subject: [PATCH] M_DrawChallengeTile: Don't draw the ? stuff if not yet unlocked --- src/k_menudraw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/k_menudraw.c b/src/k_menudraw.c index 7ebc481a5..fc44aadde 100644 --- a/src/k_menudraw.c +++ b/src/k_menudraw.c @@ -4538,6 +4538,8 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili unlockedyet = !((gamedata->unlocked[num] == false) || (challengesmenu.pending && num == challengesmenu.currentunlock && challengesmenu.unlockanim <= UNLOCKTIME)); + // If we aren't unlocked yet, return early. + if (!unlockedyet) { UINT32 flags = 0; @@ -4563,11 +4565,7 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili pat = missingpat; colormap = NULL; - } - // If we aren't unlocked yet, return early. - if (!unlockedyet) - { goto drawborder; }