From 68fa08ca5279ad028d05bad5e90a7ea5d4daa982 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 12 May 2010 06:54:59 +0000 Subject: [PATCH] - fixed: TNT MAP30 needs the stairbuilding compatibility option. SVN r2315 (trunk) --- src/compatibility.cpp | 1 + src/d_iwad.cpp | 2 +- src/gi.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compatibility.cpp b/src/compatibility.cpp index caaaaf8718..af57688c09 100644 --- a/src/compatibility.cpp +++ b/src/compatibility.cpp @@ -258,6 +258,7 @@ void CheckCompatibility(MapData *map) if (Wads.GetLumpFile(map->lumpnum) == 1 && (gameinfo.flags & GI_COMPATSHORTTEX) && !(level.flags & LEVEL_HEXENFORMAT)) { ii_compatflags = COMPATF_SHORTTEX; + if (gameinfo.flags & GI_COMPATSHORTTEX) ii_compatflags |= COMPATF_STAIRINDEX; ib_compatflags = 0; ii_compatparams = -1; } diff --git a/src/d_iwad.cpp b/src/d_iwad.cpp index 3cf9773ce0..e5939e1a7e 100644 --- a/src/d_iwad.cpp +++ b/src/d_iwad.cpp @@ -58,7 +58,7 @@ EIWADType gameiwad; const IWADInfo IWADInfos[NUM_IWAD_TYPES] = { // banner text, autoname, fg color, bg color - { "Final Doom: TNT - Evilution", "TNT", MAKERGB(168,0,0), MAKERGB(168,168,168), GAME_Doom, "mapinfo/tnt.txt", GI_MAPxx | GI_COMPATSHORTTEX }, + { "Final Doom: TNT - Evilution", "TNT", MAKERGB(168,0,0), MAKERGB(168,168,168), GAME_Doom, "mapinfo/tnt.txt", GI_MAPxx | GI_COMPATSHORTTEX | GI_COMPATSTAIRS }, { "Final Doom: Plutonia Experiment", "Plutonia", MAKERGB(168,0,0), MAKERGB(168,168,168), GAME_Doom, "mapinfo/plutonia.txt", GI_MAPxx | GI_COMPATSHORTTEX }, { "Hexen: Beyond Heretic", NULL, MAKERGB(240,240,240), MAKERGB(107,44,24), GAME_Hexen, "mapinfo/hexen.txt", GI_MAPxx }, { "Hexen: Deathkings of the Dark Citadel", "HexenDK", MAKERGB(240,240,240), MAKERGB(139,68,9), GAME_Hexen, "mapinfo/hexen.txt", GI_MAPxx }, diff --git a/src/gi.h b/src/gi.h index 0ada094c25..a87098555b 100644 --- a/src/gi.h +++ b/src/gi.h @@ -43,6 +43,7 @@ #define GI_MENUHACK_EXTENDED 0x00000004 // (Heretic) #define GI_TEASER2 0x00000008 // Alternate version of the Strife Teaser #define GI_COMPATSHORTTEX 0x00000010 // always force COMPAT_SHORTTEX for IWAD maps. +#define GI_COMPATSTAIRS 0x00000010 // same for stairbuilding #include "gametype.h"