UC_ADDON: On second thoughts, don't have seperate conditions for DEVELOP and non-DEVELOP

Any difference in behaviour between these is a possible avenue for bugs which take some time to be discovered
This commit is contained in:
toaster 2023-03-16 23:27:21 +00:00
parent 7b917930d4
commit e5f88dd2c6

View file

@ -759,11 +759,8 @@ boolean M_CheckCondition(condition_t *cn, player_t *player)
return M_Achieved(cn->requirement-1); return M_Achieved(cn->requirement-1);
case UC_ADDON: case UC_ADDON:
return ( return ((gamedata->everloadedaddon == true)
#ifndef DEVELOP && M_SecretUnlocked(SECRET_ADDONS, true));
M_SecretUnlocked(SECRET_ADDONS, true) &&
#endif
(gamedata->everloadedaddon == true));
case UC_REPLAY: case UC_REPLAY:
return (gamedata->eversavedreplay == true); return (gamedata->eversavedreplay == true);
case UC_CRASH: case UC_CRASH:
@ -1221,7 +1218,7 @@ static const char *M_GetConditionString(condition_t *cn)
: "???"); : "???");
case UC_ADDON: case UC_ADDON:
if (!M_SecretUnlocked(SECRET_ADDONS, true) && !gamedata->everloadedaddon) if (!M_SecretUnlocked(SECRET_ADDONS, true))
return NULL; return NULL;
return "load a custom addon into \"Dr. Robotnik's Ring Racers\""; return "load a custom addon into \"Dr. Robotnik's Ring Racers\"";
case UC_REPLAY: case UC_REPLAY: