diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-08 06:50:29 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-08 06:50:29 +0100 |
commit | 778d1381bb2dff5371782dbb773770f4adc17a35 (patch) | |
tree | d4e69b11889238d60d8c1ff29e1faea109e8ad7c /src/core/World.cpp | |
parent | GenerateOneRandomCar cleanup (diff) | |
download | re3-778d1381bb2dff5371782dbb773770f4adc17a35.tar re3-778d1381bb2dff5371782dbb773770f4adc17a35.tar.gz re3-778d1381bb2dff5371782dbb773770f4adc17a35.tar.bz2 re3-778d1381bb2dff5371782dbb773770f4adc17a35.tar.lz re3-778d1381bb2dff5371782dbb773770f4adc17a35.tar.xz re3-778d1381bb2dff5371782dbb773770f4adc17a35.tar.zst re3-778d1381bb2dff5371782dbb773770f4adc17a35.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/World.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index 0bc564ff..1c988894 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -33,7 +33,7 @@ CColPoint gaTempSphereColPoints[MAX_COLLISION_POINTS]; -CPtrList CWorld::ms_bigBuildingsList[4]; +CPtrList CWorld::ms_bigBuildingsList[NUM_LEVELS]; CPtrList CWorld::ms_listMovingEntityPtrs; CSector CWorld::ms_aSectors[NUMSECTORS_Y][NUMSECTORS_X]; uint16 CWorld::ms_nCurrentScanCode; @@ -1745,13 +1745,13 @@ CWorld::ShutDown(void) pSector->m_lists[ENTITYLIST_DUMMIES_OVERLAP].Flush(); #endif } - for(int32 i = 0; i < 4; i++) { - for(CPtrNode *pNode = GetBigBuildingList((eLevelName)i).first; pNode; pNode = pNode->next) { + for(int32 i = 0; i < NUM_LEVELS; i++) { + for(CPtrNode *pNode = ms_bigBuildingsList[i].first; pNode; pNode = pNode->next) { CEntity *pEntity = (CEntity *)pNode->item; // Maybe remove from world here? delete pEntity; } - GetBigBuildingList((eLevelName)i).Flush(); + ms_bigBuildingsList[i].Flush(); } for(int i = 0; i < NUMSECTORS_X * NUMSECTORS_Y; i++) { CSector *pSector = GetSector(i % NUMSECTORS_X, i / NUMSECTORS_Y); |