- forgot to handle GI_MAPxx flag.

SVN r2944 (trunk)
This commit is contained in:
Christoph Oelckers 2010-10-15 15:40:16 +00:00
parent eded2ef345
commit 0bde8591ee

View file

@ -1801,6 +1801,21 @@ static FString CheckGameInfo(TArray<FString> & pwads)
return ""; 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 // D_DoomMain
@ -1946,6 +1961,7 @@ void D_DoomMain (void)
Wads.InitMultipleFiles (allwads); Wads.InitMultipleFiles (allwads);
allwads.Clear(); allwads.Clear();
allwads.ShrinkToFit(); allwads.ShrinkToFit();
SetMapxxFlag();
// [RH] Initialize localizable strings. // [RH] Initialize localizable strings.
GStrings.LoadStrings (false); GStrings.LoadStrings (false);