mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add a mechanism where in DEVELOP builds, you can use any feature that doesn't have an unlockable in the listings attached to it.
This is necessary to test fixing wipes, because Encore mode is currently completely inaccessible otherwise.
This commit is contained in:
parent
1ec6240001
commit
1f52156d7d
1 changed files with 11 additions and 3 deletions
14
src/m_cond.c
14
src/m_cond.c
|
|
@ -358,12 +358,20 @@ UINT8 M_SecretUnlocked(INT32 type)
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef DEVELOP
|
||||||
|
#define CHADYES true
|
||||||
|
#else
|
||||||
|
#define CHADYES false
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < MAXUNLOCKABLES; ++i)
|
for (i = 0; i < MAXUNLOCKABLES; ++i)
|
||||||
{
|
{
|
||||||
if (unlockables[i].type == type && unlockables[i].unlocked)
|
if (unlockables[i].type == type && unlockables[i].unlocked != CHADYES)
|
||||||
return true;
|
return !CHADYES;
|
||||||
}
|
}
|
||||||
return false;
|
return CHADYES;
|
||||||
|
|
||||||
|
#undef CHADYES
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT8 M_MapLocked(INT32 mapnum)
|
UINT8 M_MapLocked(INT32 mapnum)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue