mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Slightly less duplication
This commit is contained in:
parent
887f4150c1
commit
1201acce4b
1 changed files with 4 additions and 4 deletions
|
@ -5168,21 +5168,21 @@ static void M_DrawChecklist(void)
|
||||||
{
|
{
|
||||||
UINT32 i, line = 0, c;
|
UINT32 i, line = 0, c;
|
||||||
INT32 lastid;
|
INT32 lastid;
|
||||||
|
boolean secret = false;
|
||||||
|
|
||||||
for (i = 0; i < MAXUNLOCKABLES; i++)
|
for (i = 0; i < MAXUNLOCKABLES; i++)
|
||||||
{
|
{
|
||||||
const char *secretname;
|
const char *secretname;
|
||||||
boolean secret = false;
|
|
||||||
|
secret = (!M_Achieved(unlockables[i].showconditionset - 1) && !unlockables[i].unlocked);
|
||||||
|
|
||||||
if (unlockables[i].name[0] == 0 || unlockables[i].nochecklist
|
if (unlockables[i].name[0] == 0 || unlockables[i].nochecklist
|
||||||
|| !unlockables[i].conditionset || unlockables[i].conditionset > MAXCONDITIONSETS
|
|| !unlockables[i].conditionset || unlockables[i].conditionset > MAXCONDITIONSETS
|
||||||
|| (unlockables[i].type == SECRET_HELLATTACK // TODO: turn this into an unlockable setting instead of tying it to this unlockable
|
|| (unlockables[i].type == SECRET_HELLATTACK && secret)) // TODO: turn this into an unlockable setting instead of tying it to Hell Attack
|
||||||
&& !M_Achieved(unlockables[i].showconditionset - 1) && !unlockables[i].unlocked))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
++line;
|
++line;
|
||||||
secretname = M_CreateSecretMenuOption(unlockables[i].name);
|
secretname = M_CreateSecretMenuOption(unlockables[i].name);
|
||||||
secret = (!M_Achieved(unlockables[i].showconditionset - 1) && !unlockables[i].unlocked);
|
|
||||||
|
|
||||||
V_DrawString(8, (line*8), V_RETURN8|(unlockables[i].unlocked ? recommendedflags : warningflags), (secret ? secretname : unlockables[i].name));
|
V_DrawString(8, (line*8), V_RETURN8|(unlockables[i].unlocked ? recommendedflags : warningflags), (secret ? secretname : unlockables[i].name));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue