M_GetConditionString: Hide Cup for UCRP_PODIUMCUP if not unlocked

This commit is contained in:
toaster 2023-06-06 15:33:46 +01:00
parent 98e866c393
commit 2ab046fc30

View file

@ -1322,7 +1322,10 @@ static const char *M_GetConditionString(condition_t *cn)
{
if (cup->id != cn->requirement)
continue;
return va("%s%s %s CUP", completetype, orbetter, cup->name);
return va("%s%s %s CUP",
completetype, orbetter,
(M_CupLocked(cup) ? "???" : cup->name)
);
}
return va("INVALID CUP CONDITION \"%d:%d\"", cn->type, cn->requirement);
}