Sector portals sunlight only

This commit is contained in:
RaveYard 2023-09-05 15:47:48 +02:00 committed by Magnus Norddahl
commit 036debfac6
5 changed files with 69 additions and 2 deletions

View file

@ -3299,5 +3299,7 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
if (!Level->IsReentering())
Level->FinalizePortals(); // finalize line portals after polyobjects have been initialized. This info is needed for properly flagging them.
Level->levelMesh->CreatePortals(); // [RaveYard]: needs portal data, but at the same time intializing the level mesh here breaks floor/ceiling planes!
Level->aabbTree = new DoomLevelAABBTree(Level);
}