- added UDMF_fields for sector plane reflectiveness.

This commit is contained in:
Christoph Oelckers 2016-12-28 01:09:42 +01:00
commit 6322c81719
4 changed files with 23 additions and 0 deletions

View file

@ -4080,6 +4080,13 @@ void P_SetupLevel (const char *lumpname, int position)
// set up world state
P_SpawnSpecials ();
// disable reflective planes on sloped sectors.
for (auto i = 0; i < numsectors; i++)
{
if (sectors[i].floorplane.isSlope()) sectors[i].reflect[sector_t::floor] = 0;
if (sectors[i].ceilingplane.isSlope()) sectors[i].reflect[sector_t::ceiling] = 0;
}
// This must be done BEFORE the PolyObj Spawn!!!
Renderer->PreprocessLevel();