diff options
author | erorcun <erayorcunus@gmail.com> | 2019-10-03 03:04:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 03:04:54 +0200 |
commit | fc5f6955777540e4f95a4bfbb335d61b184fdaca (patch) | |
tree | d6332ecc7e38431dbe22a32a291b27e0d5d16c66 /src/control/CarCtrl.cpp | |
parent | Merge pull request #216 from erorcun/erorcun (diff) | |
parent | Fix typo in CCarCtrl::WeaveThroughPedsSectorList (diff) | |
download | re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.gz re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.bz2 re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.lz re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.xz re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.zst re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.zip |
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r-- | src/control/CarCtrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 0be8a0a0..710bae0f 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -1323,7 +1323,7 @@ void CCarCtrl::WeaveThroughPedsSectorList(CPtrList& lst, CVehicle* pVehicle, CPh continue; if (pPed->GetPosition().y < y_inf || pPed->GetPosition().y > y_sup) continue; - if (Abs(pPed->GetPosition().z - pPed->GetPosition().z) >= PED_HEIGHT_DIFF_TO_CONSIDER_WEAVING) + if (Abs(pPed->GetPosition().z - pVehicle->GetPosition().z) >= PED_HEIGHT_DIFF_TO_CONSIDER_WEAVING) continue; if (pPed->m_pCurSurface != pVehicle) WeaveForPed(pPed, pVehicle, pAngleToWeaveLeft, pAngleToWeaveRight); |