From c304b39ecc656dbdcfd2014bdb8b35b761a72559 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 29 Aug 2010 12:20:35 +0000 Subject: [PATCH] - added new sector special 195 to set the 'hidden' sector flag in non-UDMF maps. SVN r2637 (trunk) --- specs/udmf_zdoom.txt | 4 ++++ src/p_lnspec.h | 5 +++-- src/p_spec.cpp | 5 +++++ wadsrc/static/xlat/defines.i | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/specs/udmf_zdoom.txt b/specs/udmf_zdoom.txt index 9f91c748e..fe6897d9f 100644 --- a/specs/udmf_zdoom.txt +++ b/specs/udmf_zdoom.txt @@ -163,6 +163,7 @@ Note: All fields default to false unless mentioned otherwise. norespawn = ; // Players can not respawn in this sector soundsequence = ; // The sound sequence to play when this sector moves. Placing a // sound sequence thing in the sector will override this property. + hidden = ; // if true this sector will not be drawn on the textured automap. * Note about dropactors @@ -273,6 +274,9 @@ Added 'soundsequnce' sector property. 1.12 22.08.2010 Added 'conversation' thing property. +1.13 29.08.2010 +Added 'hidden' sector property. + =============================================================================== EOF =============================================================================== diff --git a/src/p_lnspec.h b/src/p_lnspec.h index f0942c4fd..050e0fe7b 100644 --- a/src/p_lnspec.h +++ b/src/p_lnspec.h @@ -114,8 +114,9 @@ typedef enum { sDamage_SuperHellslime = 116, Scroll_StrifeCurrent = 118, - // Caverns of Darkness healing sector - Sector_Heal = 196, + + Sector_Hidden = 195, + Sector_Heal = 196, // Caverns of Darkness healing sector Light_OutdoorLightning = 197, Light_IndoorLightning1 = 198, diff --git a/src/p_spec.cpp b/src/p_spec.cpp index 915d4a508..e37df68b1 100644 --- a/src/p_spec.cpp +++ b/src/p_spec.cpp @@ -1104,6 +1104,11 @@ void P_SpawnSpecials (void) 0, -1, int(sector-sectors), 0); break; + case Sector_Hidden: + sector->MoreFlags |= SECF_HIDDEN; + sector->special &= 0xff00; + break; + default: if ((sector->special & 0xff) >= Scroll_North_Slow && (sector->special & 0xff) <= Scroll_SouthWest_Fast) diff --git a/wadsrc/static/xlat/defines.i b/wadsrc/static/xlat/defines.i index b72641d30..60d582f70 100644 --- a/wadsrc/static/xlat/defines.i +++ b/wadsrc/static/xlat/defines.i @@ -145,8 +145,8 @@ enum sDamage_SuperHellslime = 116, Scroll_StrifeCurrent = 118, - // Caverns of Darkness healing sector - Sector_Heal = 196, + Sector_Hidden = 195, + Sector_Heal = 196, // Caverns of Darkness healing sector Light_OutdoorLightning = 197, Light_IndoorLightning1 = 198,