diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-12 11:16:39 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-12 11:16:39 +0200 |
commit | 7c6c64982320eca950a27a1e5b2520a85ba01874 (patch) | |
tree | 9628a196c397e060075ed5c2f44510730e0d7cdc /src/control | |
parent | Logic fix in CParticleObject::UpdateAll (diff) | |
download | re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.gz re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.bz2 re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.lz re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.xz re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.zst re3-7c6c64982320eca950a27a1e5b2520a85ba01874.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/CarAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp index f01ab70f..10083059 100644 --- a/src/control/CarAI.cpp +++ b/src/control/CarAI.cpp @@ -441,7 +441,7 @@ float CCarAI::GetCarToGoToCoors(CVehicle* pVehicle, CVector* pTarget) pVehicle->AutoPilot.m_nCarMission = (CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, *pTarget, false)) ? MISSION_GOTOCOORDS_STRAIGHT : MISSION_GOTOCOORDS; }else if (Abs(pTarget->x - pVehicle->AutoPilot.m_vecDestinationCoors.x) > 2.0f || - Abs(pTarget->x - pVehicle->AutoPilot.m_vecDestinationCoors.x) > 2.0f){ + Abs(pTarget->y - pVehicle->AutoPilot.m_vecDestinationCoors.y) > 2.0f){ pVehicle->AutoPilot.m_vecDestinationCoors = *pTarget; } return (pVehicle->GetPosition() - *pTarget).Magnitude2D(); |