- assigned endoom lump name after mapinfo is parsed

https://forum.zdoom.org/viewtopic.php?t=69032
This commit is contained in:
alexey.lysiuk 2020-06-19 10:53:28 +03:00
parent f2ddbeeb81
commit 0d3134d825

View file

@ -3151,7 +3151,6 @@ static int D_DoomMain_Internal (void)
gameinfo.nokeyboardcheats = iwad_info->nokeyboardcheats; gameinfo.nokeyboardcheats = iwad_info->nokeyboardcheats;
gameinfo.ConfigName = iwad_info->Configname; gameinfo.ConfigName = iwad_info->Configname;
lastIWAD = iwad; lastIWAD = iwad;
endoomName = gameinfo.Endoom;
if ((gameinfo.flags & GI_SHAREWARE) && pwads.Size() > 0) if ((gameinfo.flags & GI_SHAREWARE) && pwads.Size() > 0)
@ -3333,6 +3332,7 @@ static int D_DoomMain_Internal (void)
if (!batchrun) Printf ("G_ParseMapInfo: Load map definitions.\n"); if (!batchrun) Printf ("G_ParseMapInfo: Load map definitions.\n");
G_ParseMapInfo (iwad_info->MapInfo); G_ParseMapInfo (iwad_info->MapInfo);
MessageBoxClass = gameinfo.MessageBoxClass; MessageBoxClass = gameinfo.MessageBoxClass;
endoomName = gameinfo.Endoom;
ReadStatistics(); ReadStatistics();
// MUSINFO must be parsed after MAPINFO // MUSINFO must be parsed after MAPINFO