Statistics Map screen: If Sealed Stars have been visited but you haven't unlocked Special Mode, show them under Lost & Found instead of revealing the true cup order early

This commit is contained in:
toaster 2025-08-28 15:29:40 +01:00
parent 69241774f8
commit 026831d9c8

View file

@ -26,7 +26,20 @@ static boolean M_StatisticsAddMap(UINT16 map, cupheader_t *cup, boolean *headere
if (!mapheaderinfo[map])
return false;
if (mapheaderinfo[map]->cup != cup)
if (mapheaderinfo[map]->typeoflevel & TOL_SPECIAL)
{
if (gamedata->sealedswaps[GDMAX_SEALEDSWAPS-1] != NULL // all found
|| (mapheaderinfo[map]->cup
&& mapheaderinfo[map]->cup->id >= basenumkartcupheaders) // custom content
|| M_SecretUnlocked(SECRET_SPECIALATTACK, true)) // true order
{
if (mapheaderinfo[map]->cup != cup)
return false;
}
else if (cup) // Appear under Lost & Found until you've ordered them.
return false;
}
else if (mapheaderinfo[map]->cup != cup)
return false;
if (((mapheaderinfo[map]->typeoflevel & TOL_TUTORIAL) == TOL_TUTORIAL) != tutorial)