mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-28 14:55:40 +00:00
small refactoring
This commit is contained in:
parent
239367663b
commit
11f2d941f1
1 changed files with 11 additions and 8 deletions
|
@ -1012,14 +1012,17 @@ CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle)
|
||||||
delete pVehicle;
|
delete pVehicle;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (pVehicle->GetStatus() != STATUS_WRECKED || pVehicle->m_nTimeOfDeath == 0)
|
if (pVehicle->GetStatus() == STATUS_WRECKED) {
|
||||||
return;
|
if (pVehicle->m_nTimeOfDeath != 0) {
|
||||||
if (CTimer::GetTimeInMilliseconds() > pVehicle->m_nTimeOfDeath + 60000 &&
|
if (CTimer::GetTimeInMilliseconds() > pVehicle->m_nTimeOfDeath + 60000 &&
|
||||||
!pVehicle->GetIsOnScreen()){
|
CTimer::GetTimeInMilliseconds() > pVehicle->m_nSetPieceExtendedRangeTime &&
|
||||||
if ((pVehicle->GetPosition() - vecPlayerPos).MagnitudeSqr() > SQR(7.5f)){
|
!(pVehicle->GetIsOnScreen())) {
|
||||||
if (!CGarages::IsPointWithinHideOutGarage(pVehicle->GetPosition())){
|
if ((pVehicle->GetPosition() - vecPlayerPos).MagnitudeSqr() > SQR(6.5f)) {
|
||||||
CWorld::Remove(pVehicle);
|
if (!CGarages::IsPointWithinHideOutGarage(pVehicle->GetPosition())) {
|
||||||
delete pVehicle;
|
CWorld::Remove(pVehicle);
|
||||||
|
delete pVehicle;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue