- fixed: sector_t::GetHeightSec checked the wrong MoreFlags.

SVN r1936 (trunk)
This commit is contained in:
Christoph Oelckers 2009-10-25 19:39:43 +00:00
parent cc2b0b0dcf
commit 7e2e62fd5c
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
October 24, 2009 (Changes by Graf Zahl) October 24, 2009 (Changes by Graf Zahl)
- fixed: sector_t::GetHeightSec checked the wrong MoreFlags.
- made max. view pitch a property of the renderer so that it's overridable without - made max. view pitch a property of the renderer so that it's overridable without
changing game code. changing game code.
- made SpawningMapThing an argument of AActor::StaticSpawn instead of a global - made SpawningMapThing an argument of AActor::StaticSpawn instead of a global

View file

@ -588,7 +588,7 @@ struct sector_t
sector_t *GetHeightSec() const sector_t *GetHeightSec() const
{ {
return (MoreFlags & SECF_IGNOREHEIGHTSEC)? NULL : heightsec; return (heightsec && !(heightsec->MoreFlags & SECF_IGNOREHEIGHTSEC))? heightsec : NULL;
} }
void ChangeLightLevel(int newval) void ChangeLightLevel(int newval)