summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-08 01:04:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-08 01:04:37 +0200
commitd48749f7978bc6edb3cc891123faa3b7374c5db6 (patch)
treebb67410020a0f8d550d975079670d34858a2826f /src/control
parentfixes (diff)
downloadre3-d48749f7978bc6edb3cc891123faa3b7374c5db6.tar
re3-d48749f7978bc6edb3cc891123faa3b7374c5db6.tar.gz
re3-d48749f7978bc6edb3cc891123faa3b7374c5db6.tar.bz2
re3-d48749f7978bc6edb3cc891123faa3b7374c5db6.tar.lz
re3-d48749f7978bc6edb3cc891123faa3b7374c5db6.tar.xz
re3-d48749f7978bc6edb3cc891123faa3b7374c5db6.tar.zst
re3-d48749f7978bc6edb3cc891123faa3b7374c5db6.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 59f49a41..a6d449da 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -1615,7 +1615,7 @@ void CCarCtrl::WeaveThroughPedsSectorList(CPtrList& lst, CVehicle* pVehicle, CPh
continue;
if (Abs(pPed->GetPosition().z - pVehicle->GetPosition().z) >= PED_HEIGHT_DIFF_TO_CONSIDER_WEAVING)
continue;
- if (pPed->m_pCurSurface != pVehicle)
+ if (pPed->m_pCurSurface != pVehicle && pPed->m_attachedTo != pVehicle)
WeaveForPed(pPed, pVehicle, pAngleToWeaveLeft, pAngleToWeaveRight);
}