mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 16:24:08 +00:00
script revision
This commit is contained in:
parent
f33a01e8c8
commit
0085ed894f
4 changed files with 211 additions and 53 deletions
|
@ -2995,7 +2995,9 @@ void CCarCtrl::FindLinksToGoWithTheseNodes(CVehicle* pVehicle)
|
|||
CPathNode* pNode = &ThePaths.m_pathNodes[node];
|
||||
if (node == pVehicle->AutoPilot.m_nNextRouteNode)
|
||||
continue;
|
||||
float dist = CCollision::DistToLine(&pCurNode->GetPosition(), &pNode->GetPosition(), &pVehicle->GetPosition());
|
||||
CVector vCurPos = pCurNode->GetPosition();
|
||||
CVector vNextPos = pNode->GetPosition();
|
||||
float dist = CCollision::DistToLine(&vCurPos, &vNextPos, &pVehicle->GetPosition());
|
||||
if (dist < md) {
|
||||
md = dist;
|
||||
closestLink = curLink;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue