mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
7b917930d4
commit
e5f88dd2c6
1 changed files with 3 additions and 6 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue