mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-21 14:12:31 +00:00
M_UpdateChallengeGridExtraData: Slight optimisation in initial setup
This commit is contained in:
parent
b33597e225
commit
33dfb697bf
1 changed files with 3 additions and 3 deletions
|
|
@ -418,14 +418,14 @@ void M_UpdateChallengeGridExtraData(challengegridextradata_t *extradata)
|
|||
{
|
||||
id = (i * CHALLENGEGRIDHEIGHT) + j;
|
||||
num = gamedata->challengegrid[id];
|
||||
if (num >= MAXUNLOCKABLES || unlockables[num].majorunlock == false)
|
||||
if (num >= MAXUNLOCKABLES || unlockables[num].majorunlock == false || gamedata->unlocked[num] == true)
|
||||
{
|
||||
extradata[id].flags = CHE_NONE;
|
||||
continue;
|
||||
}
|
||||
|
||||
// We only do this for large tiles, to reduce the complexity
|
||||
// of most standard tile challenge comparisons
|
||||
// We only do this for locked large tiles, to reduce the
|
||||
// complexity of most standard tile challenge comparisons
|
||||
extradata[id].flags = CHE_ALLCLEAR;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue