summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Cranes.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-23 14:14:24 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-23 14:14:24 +0100
commitdefbb01aaa67ffdb1e3b2ea217a60693830edfbc (patch)
treefc9a4a66168745e3bae5c65af0c116441d072028 /src/vehicles/Cranes.cpp
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
parentMerge pull request #980 from Sergeanur/lcsMID (diff)
downloadre3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.tar
re3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.tar.gz
re3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.tar.bz2
re3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.tar.lz
re3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.tar.xz
re3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.tar.zst
re3-defbb01aaa67ffdb1e3b2ea217a60693830edfbc.zip
Diffstat (limited to 'src/vehicles/Cranes.cpp')
-rw-r--r--src/vehicles/Cranes.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index c84b6732..a675fe4e 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -50,7 +50,12 @@ void CCranes::InitCranes(void)
for (int j = 0; j < NUMSECTORS_Y; j++) {
for (CPtrNode* pNode = CWorld::GetSector(i, j)->m_lists[ENTITYLIST_BUILDINGS].first; pNode; pNode = pNode->next) {
CEntity* pEntity = (CEntity*)pNode->item;
- if (MI_LCS_CRANE01 == pEntity->GetModelIndex())
+ if (MODELID_CRANE_1 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_2 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_3 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_4 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_5 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_6 == pEntity->GetModelIndex())
AddThisOneCrane(pEntity);
}
}
@@ -58,7 +63,12 @@ void CCranes::InitCranes(void)
// TODO(LCS)
for (CPtrNode* pNode = CWorld::GetBigBuildingList(LEVEL_INDUSTRIAL).first; pNode; pNode = pNode->next) {
CEntity* pEntity = (CEntity*)pNode->item;
- if (MI_LCS_CRANE01 == pEntity->GetModelIndex())
+ if (MODELID_CRANE_1 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_2 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_3 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_4 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_5 == pEntity->GetModelIndex() ||
+ MODELID_CRANE_6 == pEntity->GetModelIndex())
AddThisOneCrane(pEntity);
}