mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 15:52:09 +00:00
- forgot to handle GI_MAPxx flag.
SVN r2944 (trunk)
This commit is contained in:
parent
eded2ef345
commit
0bde8591ee
1 changed files with 17 additions and 1 deletions
|
@ -1801,6 +1801,21 @@ static FString CheckGameInfo(TArray<FString> & pwads)
|
|||
return "";
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// Checks the IWAD for MAP01 and if found sets GI_MAPxx
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
static void SetMapxxFlag()
|
||||
{
|
||||
int lump_name = Wads.CheckNumForName("MAP01", FWadCollection::IWAD_FILENUM);
|
||||
int lump_wad = Wads.CheckNumForFullName("maps/map01.wad", FWadCollection::IWAD_FILENUM);
|
||||
int lump_map = Wads.CheckNumForFullName("maps/map01.map", FWadCollection::IWAD_FILENUM);
|
||||
|
||||
if (lump_name >= 0 || lump_wad >= 0 || lump_map >= 0) gameinfo.flags |= GI_MAPxx;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// D_DoomMain
|
||||
|
@ -1946,7 +1961,8 @@ void D_DoomMain (void)
|
|||
Wads.InitMultipleFiles (allwads);
|
||||
allwads.Clear();
|
||||
allwads.ShrinkToFit();
|
||||
|
||||
SetMapxxFlag();
|
||||
|
||||
// [RH] Initialize localizable strings.
|
||||
GStrings.LoadStrings (false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue