summaryrefslogtreecommitdiff
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-13 13:29:17 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-13 13:29:17 +0300
commit509d57edcb4e60be87548b202b33cef508f11fd1 (patch)
tree2b8586cff3c2cebcc807eaf0d4c287ef96ebfe62 /src/vehicles
parent7aeac06fdb9bd43addad145cad1763dc58063624 (diff)
car control and cranes fixes
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Cranes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index 9c1442c4..9c8f9fda 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -180,7 +180,7 @@ bool CCranes::IsThisCarPickedUp(float X, float Y, CVehicle* pVehicle)
for (int i = 0; i < NumCranes; i++) {
float distance = (CVector2D(X, Y) - aCranes[i].m_pCraneEntity->GetPosition()).Magnitude();
if (distance < MAX_DISTANCE_TO_FIND_CRANE && aCranes[i].m_pVehiclePickedUp == pVehicle) {
- if (aCranes[i].m_nCraneStatus == CCrane::LIFTING_TARGET || aCranes[i].m_nCraneStatus == CCrane::ROTATING_TARGET)
+ if (aCranes[i].m_nCraneState == CCrane::LIFTING_TARGET || aCranes[i].m_nCraneState == CCrane::ROTATING_TARGET)
result = true;
}
}