- added new sector special 195 to set the 'hidden' sector flag in non-UDMF maps.

SVN r2637 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-29 12:20:35 +00:00
parent d4b03e2b77
commit c304b39ecc
4 changed files with 14 additions and 4 deletions

View file

@ -163,6 +163,7 @@ Note: All <bool> fields default to false unless mentioned otherwise.
norespawn = <bool>; // Players can not respawn in this sector
soundsequence = <string>; // The sound sequence to play when this sector moves. Placing a
// sound sequence thing in the sector will override this property.
hidden = <bool>; // 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
===============================================================================

View file

@ -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,

View file

@ -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)

View file

@ -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,