summaryrefslogtreecommitdiffstats
path: root/src/control/Cranes.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-12 10:36:51 +0200
committerGitHub <noreply@github.com>2020-04-12 10:36:51 +0200
commit9593a2c000c8fed4a83e26995acdba27074d5f5a (patch)
tree3f743d4f7574d43cace00f81516ae97217a24ec6 /src/control/Cranes.cpp
parentMerge pull request #405 from erorcun/erorcun (diff)
downloadre3-9593a2c000c8fed4a83e26995acdba27074d5f5a.tar
re3-9593a2c000c8fed4a83e26995acdba27074d5f5a.tar.gz
re3-9593a2c000c8fed4a83e26995acdba27074d5f5a.tar.bz2
re3-9593a2c000c8fed4a83e26995acdba27074d5f5a.tar.lz
re3-9593a2c000c8fed4a83e26995acdba27074d5f5a.tar.xz
re3-9593a2c000c8fed4a83e26995acdba27074d5f5a.tar.zst
re3-9593a2c000c8fed4a83e26995acdba27074d5f5a.zip
Diffstat (limited to 'src/control/Cranes.cpp')
-rw-r--r--src/control/Cranes.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/control/Cranes.cpp b/src/control/Cranes.cpp
index 021a5c19..33385dae 100644
--- a/src/control/Cranes.cpp
+++ b/src/control/Cranes.cpp
@@ -410,6 +410,8 @@ void CCrane::FindCarInSectorList(CPtrList* pList)
if (pVehicle->GetPosition().x < m_fPickupX1 || pVehicle->GetPosition().x > m_fPickupX2 ||
pVehicle->GetPosition().y < m_fPickupY1 || pVehicle->GetPosition().y > m_fPickupY2)
continue;
+ if (pVehicle->pDriver)
+ continue;
if (Abs(pVehicle->GetMoveSpeed().x) >= CAR_MOVING_SPEED_THRESHOLD ||
Abs(pVehicle->GetMoveSpeed().y) >= CAR_MOVING_SPEED_THRESHOLD ||
Abs(pVehicle->GetMoveSpeed().z) >= CAR_MOVING_SPEED_THRESHOLD)
@@ -674,4 +676,4 @@ void CranesLoad(uint8* buf, uint32 size)
STARTPATCHES
InjectHook(0x5454D0, CranesLoad, PATCH_JUMP); // GenericLoad
-ENDPATCHES \ No newline at end of file
+ENDPATCHES