summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Cranes.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-22 00:59:20 +0100
committerGitHub <noreply@github.com>2021-01-22 00:59:20 +0100
commitce77e8041437e8f3e27d1020a3c9261a605137b3 (patch)
tree75089f030514d97c221385be03fed436132d27a0 /src/vehicles/Cranes.cpp
parentMerge pull request #975 from aap/lcs (diff)
parenta few fixes (diff)
downloadre3-ce77e8041437e8f3e27d1020a3c9261a605137b3.tar
re3-ce77e8041437e8f3e27d1020a3c9261a605137b3.tar.gz
re3-ce77e8041437e8f3e27d1020a3c9261a605137b3.tar.bz2
re3-ce77e8041437e8f3e27d1020a3c9261a605137b3.tar.lz
re3-ce77e8041437e8f3e27d1020a3c9261a605137b3.tar.xz
re3-ce77e8041437e8f3e27d1020a3c9261a605137b3.tar.zst
re3-ce77e8041437e8f3e27d1020a3c9261a605137b3.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Cranes.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index ce254100..8f23836d 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -14,7 +14,7 @@
// --MIAMI: file done
-#define MAX_DISTANCE_TO_FIND_CRANE (10.0f)
+#define MAX_DISTANCE_TO_FIND_CRANE (100.0f)
#define CRANE_UPDATE_RADIUS (300.0f)
#define CRANE_MOVEMENT_PROCESSING_RADIUS (150.0f)
#define CRUSHER_Z (-0.951f)
@@ -52,28 +52,18 @@ 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 (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())
+ if (MI_LCS_CRANE01 == pEntity->GetModelIndex())
AddThisOneCrane(pEntity);
}
}
}
-/* // TODO(LCS)
- for (CPtrNode* pNode = CWorld::GetBigBuildingList(LEVEL_MAINLAND).first; pNode; pNode = pNode->next) {
+ // TODO(LCS)
+ for (CPtrNode* pNode = CWorld::GetBigBuildingList(LEVEL_INDUSTRIAL).first; pNode; pNode = pNode->next) {
CEntity* pEntity = (CEntity*)pNode->item;
- 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())
+ if (MI_LCS_CRANE01 == pEntity->GetModelIndex())
AddThisOneCrane(pEntity);
}
-*/
+
}
void CCranes::AddThisOneCrane(CEntity* pEntity)