mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +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;
|
id = (i * CHALLENGEGRIDHEIGHT) + j;
|
||||||
num = gamedata->challengegrid[id];
|
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;
|
extradata[id].flags = CHE_NONE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We only do this for large tiles, to reduce the complexity
|
// We only do this for locked large tiles, to reduce the
|
||||||
// of most standard tile challenge comparisons
|
// complexity of most standard tile challenge comparisons
|
||||||
extradata[id].flags = CHE_ALLCLEAR;
|
extradata[id].flags = CHE_ALLCLEAR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue