Consolidated isometric mode commits.
This commit is contained in:
parent
f1b9e68305
commit
8a5e7449c1
33 changed files with 870 additions and 98 deletions
|
|
@ -3525,4 +3525,23 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
|
|||
}
|
||||
|
||||
Level->aabbTree = new DoomLevelAABBTree(Level);
|
||||
|
||||
// [DVR] Populate subsector->bbox for alternative space culling in orthographic projection with no fog of war
|
||||
subsector_t* sub = &Level->subsectors[0];
|
||||
seg_t* seg;
|
||||
for (unsigned int kk = 0; kk < Level->subsectors.Size(); kk++)
|
||||
{
|
||||
sub[kk].bbox.ClearBox();
|
||||
unsigned int count = sub[kk].numlines;
|
||||
seg = sub[kk].firstline;
|
||||
while(count--)
|
||||
{
|
||||
if((seg->v1 != nullptr) && (seg->v2 != nullptr))
|
||||
{
|
||||
sub[kk].bbox.AddToBox(seg->v1->fPos());
|
||||
sub[kk].bbox.AddToBox(seg->v2->fPos());
|
||||
}
|
||||
seg++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue