Oops, forgot about G_LoadDemoInfo

This commit is contained in:
GenericHeroGuy 2025-02-12 01:00:10 +01:00
parent 4697a69bd9
commit ec5f317f28
2 changed files with 5 additions and 3 deletions

View file

@ -2626,6 +2626,7 @@ void G_LoadDemoInfo(menudemo_t *pdemo)
UINT8 *infobuffer, *info_p, *extrainfo_p;
UINT8 version, subversion, pdemoflags;
UINT16 pdemoversion, count;
char mapname[MAXMAPLUMPNAME];
if (!FIL_ReadFile(pdemo->filepath, &infobuffer))
{
@ -2685,7 +2686,8 @@ void G_LoadDemoInfo(menudemo_t *pdemo)
return;
}
info_p += 4; // "PLAY"
pdemo->map = READINT16(info_p);
READSTRINGN(info_p, mapname, sizeof(mapname));
pdemo->map = G_MapNumber(mapname);
info_p += 16; // mapmd5
pdemoflags = READUINT8(info_p);

View file

@ -5643,8 +5643,8 @@ static void DrawReplayHutReplayInfo(void)
x += 85;
if (mapheaderinfo[demolist[dir_on[menudepthleft]].map-1])
V_DrawString(x, y, V_SNAPTOTOP, G_BuildMapTitle(demolist[dir_on[menudepthleft]].map));
if (demolist[dir_on[menudepthleft]].map != NEXTMAP_INVALID)
V_DrawString(x, y, V_SNAPTOTOP, G_BuildMapTitle(demolist[dir_on[menudepthleft]].map+1));
else
V_DrawString(x, y, V_SNAPTOTOP|V_ALLOWLOWERCASE|V_TRANSLUCENT, "Level is not loaded.");