mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
M_DrawChallengeTile: Don't draw the ? stuff if not yet unlocked
This commit is contained in:
parent
e65bb87ec5
commit
8dc4971c2a
1 changed files with 2 additions and 4 deletions
|
|
@ -4538,6 +4538,8 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili
|
||||||
unlockedyet = !((gamedata->unlocked[num] == false)
|
unlockedyet = !((gamedata->unlocked[num] == false)
|
||||||
|| (challengesmenu.pending && num == challengesmenu.currentunlock && challengesmenu.unlockanim <= UNLOCKTIME));
|
|| (challengesmenu.pending && num == challengesmenu.currentunlock && challengesmenu.unlockanim <= UNLOCKTIME));
|
||||||
|
|
||||||
|
// If we aren't unlocked yet, return early.
|
||||||
|
if (!unlockedyet)
|
||||||
{
|
{
|
||||||
UINT32 flags = 0;
|
UINT32 flags = 0;
|
||||||
|
|
||||||
|
|
@ -4563,11 +4565,7 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili
|
||||||
|
|
||||||
pat = missingpat;
|
pat = missingpat;
|
||||||
colormap = NULL;
|
colormap = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
// If we aren't unlocked yet, return early.
|
|
||||||
if (!unlockedyet)
|
|
||||||
{
|
|
||||||
goto drawborder;
|
goto drawborder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue