M_DrawMapMedals: Only shows ET_MAP medals with ME_ENCORE and/or ME_SPBATTACK if you've unlocked those two things

This commit is contained in:
toaster 2023-03-14 20:28:36 +00:00
parent 22e17fd881
commit 967ad3662d

View file

@ -5630,6 +5630,17 @@ static void M_DrawMapMedals(INT32 mapnum, INT32 x, INT32 y)
curtype = 2;
break;
}
case ET_MAP:
{
if (((emblem->flags & ME_ENCORE) && !M_SecretUnlocked(SECRET_ENCORE, true))
|| ((emblem->flags & ME_SPBATTACK) && !M_SecretUnlocked(SECRET_SPBATTACK, true)))
{
emblem = M_GetLevelEmblems(-1);
continue;
}
curtype = 0;
break;
}
default:
curtype = 0;
break;