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:
toaster 2020-09-22 18:10:49 +01:00
parent 1ec6240001
commit 1f52156d7d

View file

@ -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)