From 0bde8591ee0ae82bc3e02793cc3caa5b1e74d911 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 15 Oct 2010 15:40:16 +0000 Subject: [PATCH] - forgot to handle GI_MAPxx flag. SVN r2944 (trunk) --- src/d_main.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 6138c16075..75103e955a 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1801,6 +1801,21 @@ static FString CheckGameInfo(TArray & 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);