M_DrawChallengeTile: Don't draw the ? stuff if not yet unlocked

This commit is contained in:
toaster 2023-02-24 19:06:45 +00:00
parent e65bb87ec5
commit 8dc4971c2a

View file

@ -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;
}