mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 19:28:59 +00:00
Fix typo in CCarAI::GetCarToGoToCoors
This commit is contained in:
parent
3b1ae087b1
commit
7c6c649823
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ float CCarAI::GetCarToGoToCoors(CVehicle* pVehicle, CVector* pTarget)
|
||||||
pVehicle->AutoPilot.m_nCarMission = (CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, *pTarget, false)) ?
|
pVehicle->AutoPilot.m_nCarMission = (CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, *pTarget, false)) ?
|
||||||
MISSION_GOTOCOORDS_STRAIGHT : MISSION_GOTOCOORDS;
|
MISSION_GOTOCOORDS_STRAIGHT : MISSION_GOTOCOORDS;
|
||||||
}else if (Abs(pTarget->x - pVehicle->AutoPilot.m_vecDestinationCoors.x) > 2.0f ||
|
}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;
|
pVehicle->AutoPilot.m_vecDestinationCoors = *pTarget;
|
||||||
}
|
}
|
||||||
return (pVehicle->GetPosition() - *pTarget).Magnitude2D();
|
return (pVehicle->GetPosition() - *pTarget).Magnitude2D();
|
||||||
|
|
Loading…
Reference in a new issue