- fixed Doom64 style lighting.

The check for the presence of Doom64 style lighting was done too early before the line lists in the sector were created.
This commit is contained in:
Christoph Oelckers 2020-01-04 10:45:22 +01:00
parent 4253fb6b4a
commit 8b3c03d416
2 changed files with 2 additions and 5 deletions

View file

@ -3245,6 +3245,8 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
{
if (sec.floorplane.isSlope()) sec.reflect[sector_t::floor] = 0;
if (sec.ceilingplane.isSlope()) sec.reflect[sector_t::ceiling] = 0;
sec.CheckExColorFlag();
}
for (auto &node : Level->nodes)
{

View file

@ -2312,11 +2312,6 @@ public:
// Create the real linedefs and decompress the sidedefs
ProcessLineDefs();
// enable the excolor flag on all sidedefs which need it for a gradient transfer from the sector.
for (auto& sec : Level->sectors)
{
sec.CheckExColorFlag();
}
}
};