- refactored the global sectors array into a more VM friendly type and moved it into FLevelLocals.

This commit is contained in:
Christoph Oelckers 2017-01-07 19:32:24 +01:00
commit c02281a439
57 changed files with 438 additions and 456 deletions

View file

@ -2781,14 +2781,13 @@ void AM_drawKeys ()
void AM_drawThings ()
{
AMColor color;
int i;
AActor* t;
mpoint_t p;
DAngle angle;
for (i=0;i<numsectors;i++)
for (auto &sec : level.sectors)
{
t = sectors[i].thinglist;
t = sec.thinglist;
while (t)
{
if (am_cheat > 0 || !(t->flags6 & MF6_NOTONAUTOMAP))