summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Cranes.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-23 01:51:26 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-23 01:56:48 +0100
commit6b54d04bfc79141c4f751875641dec61da18f3f7 (patch)
treeb4bc1ff4d102711f6afaa2f57050d07222cc3bc3 /src/vehicles/Cranes.cpp
parentcSmallHeap (diff)
downloadre3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.gz
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.bz2
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.lz
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.xz
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.zst
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.zip
Diffstat (limited to '')
-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);
}