mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-11 02:30:34 +00:00
Fix a bunch of CModelInfo::GetModelInfo->GetColModel calls, part 2
This commit is contained in:
parent
d7a28c4d2b
commit
463fdab6a4
3 changed files with 6 additions and 6 deletions
|
@ -400,7 +400,7 @@ CCarCtrl::GenerateOneRandomCar()
|
|||
pVehicle->m_bSirenOrAlarm = true;
|
||||
pVehicle->AutoPilot.m_nNextPathNodeInfo = connectionId;
|
||||
pVehicle->AutoPilot.m_nNextLane = pVehicle->AutoPilot.m_nCurrentLane = CGeneral::GetRandomNumber() % lanesOnCurrentRoad;
|
||||
CBox* boundingBox = &CModelInfo::GetModelInfo(pVehicle->GetModelIndex())->GetColModel()->boundingBox;
|
||||
CBox* boundingBox = &CModelInfo::GetColModel(pVehicle->GetModelIndex())->boundingBox;
|
||||
float carLength = 1.0f + (boundingBox->max.y - boundingBox->min.y) / 2;
|
||||
float distanceBetweenNodes = (pCurNode->GetPosition() - pNextNode->GetPosition()).Magnitude2D();
|
||||
/* If car is so long that it doesn't fit between two car nodes, place it directly in the middle. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue