Fix inconsistencies with some maps-related statistics

This commit is contained in:
toaster 2023-08-06 23:25:32 +01:00
parent 49e3e6b500
commit 52b4104f86

View file

@ -6016,9 +6016,14 @@ static void M_DrawStatsMaps(void)
for (i = 0; i < nummapheaders; i++) for (i = 0; i < nummapheaders; i++)
{ {
// Check for no visibility
if (!mapheaderinfo[i] || (mapheaderinfo[i]->menuflags & (LF2_NOTIMEATTACK|LF2_HIDEINSTATS|LF2_HIDEINMENU))) if (!mapheaderinfo[i] || (mapheaderinfo[i]->menuflags & (LF2_NOTIMEATTACK|LF2_HIDEINSTATS|LF2_HIDEINMENU)))
continue; continue;
// No TEST RUN, as that's another exception to Time Attack too
if (!mapheaderinfo[i]->typeoflevel)
continue;
if (mapheaderinfo[i]->records.time <= 0) if (mapheaderinfo[i]->records.time <= 0)
{ {
mapsunfinished++; mapsunfinished++;
@ -6171,7 +6176,7 @@ static void M_DrawStatsMaps(void)
} }
bottomarrow: bottomarrow:
if (dobottomarrow) if (dobottomarrow)
V_DrawCharacter(10, y-STATSSTEP + (skullAnimCounter/5), V_DrawCharacter(10, y-10 + (skullAnimCounter/5),
'\x1B' | highlightflags, false); // down arrow '\x1B' | highlightflags, false); // down arrow
} }