diff options
| author | Sergeanur <s.anureev@yandex.ua> | 2020-12-29 13:55:15 +0200 |
|---|---|---|
| committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-29 13:55:15 +0200 |
| commit | f75460fc1d83f82b088aaf69d6fba869fc1569f5 (patch) | |
| tree | ae2bde9908a773eef046c10f8635129dac7b1c2a /src/core/World.cpp | |
| parent | Merge pull request #904 from Sergeanur/bvf (diff) | |
| download | re3-f75460fc1d83f82b088aaf69d6fba869fc1569f5.tar.gz | |
Reorder CEntity functions into their original order
Diffstat (limited to 'src/core/World.cpp')
| -rw-r--r-- | src/core/World.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index b2c1696c..dc99f015 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -1600,14 +1600,24 @@ CWorld::ExtinguishAllCarFiresInArea(CVector point, float range) } } +inline void +AddSteamsFromGround(CPtrList& list) +{ + CPtrNode *pNode = list.first; + while (pNode) { + ((CEntity*)pNode->item)->AddSteamsFromGround(nil); + pNode = pNode->next; + } +} + void CWorld::AddParticles(void) { for(int32 y = 0; y < NUMSECTORS_Y; y++) { for(int32 x = 0; x < NUMSECTORS_X; x++) { CSector *pSector = GetSector(x, y); - CEntity::AddSteamsFromGround(pSector->m_lists[ENTITYLIST_BUILDINGS]); - CEntity::AddSteamsFromGround(pSector->m_lists[ENTITYLIST_DUMMIES]); + AddSteamsFromGround(pSector->m_lists[ENTITYLIST_BUILDINGS]); + AddSteamsFromGround(pSector->m_lists[ENTITYLIST_DUMMIES]); } } } |
