summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-23 14:09:54 +0100
committerGitHub <noreply@github.com>2021-01-23 14:09:54 +0100
commit4bde3366c1a2edb13f67b3fa9e1605573d8331bd (patch)
treef6b742f26201f0f5a28e2c12fba508ea41cc04f9 /src/vehicles
parentRemove restrictions in CGame::Process (diff)
parentRemove size assert (diff)
downloadre3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.gz
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.bz2
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.lz
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.xz
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.zst
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.zip
Diffstat (limited to 'src/vehicles')
-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);
}