- disable polyobj AABBTree updates

This commit is contained in:
Magnus Norddahl 2019-01-04 13:56:36 +01:00
parent 3b77e2db68
commit 4f4d10ce5f

View file

@ -44,9 +44,14 @@ LevelAABBTree::LevelAABBTree()
{
if (!level.lines[i].backsector)
{
#ifdef USE_POLYOBJ_SHADOWS
if (level.lines[i].sidedef[0] && (level.lines[i].sidedef[0]->Flags & WALLF_POLYOBJ))
polylines.Push(i);
line_elements.Push(i);
#else
if (!level.lines[i].sidedef[0] || !(level.lines[i].sidedef[0]->Flags & WALLF_POLYOBJ))
line_elements.Push(i);
#endif
}
}