1
0
mirror of https://github.com/halpz/re3.git synced 2025-06-18 11:38:41 +00:00

fixed attached ped

This commit is contained in:
Nikolay Korolev 2020-06-08 02:04:37 +03:00
parent 16a5c2f676
commit d48749f797

@ -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);
}