mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 01:29:16 +01:00
Merge branch 'master' of https://github.com/GTAmodding/re3 into erorcun
This commit is contained in:
commit
6438244540
@ -120,14 +120,14 @@ CWorld::ClearExcitingStuffFromArea(const CVector &pos, float radius, bool bRemov
|
||||
for(int32 i = 0; i < pedPool->GetSize(); i++) {
|
||||
CPed *pPed = pedPool->GetSlot(i);
|
||||
if(pPed && !pPed->IsPlayer() && pPed->CanBeDeleted() &&
|
||||
CVector2D(pPed->GetPosition() - pos).MagnitudeSqr() < radius) {
|
||||
CVector2D(pPed->GetPosition() - pos).MagnitudeSqr() < SQR(radius)) {
|
||||
CPopulation::RemovePed(pPed);
|
||||
}
|
||||
}
|
||||
CVehiclePool *VehiclePool = CPools::GetVehiclePool();
|
||||
for(int32 i = 0; i < VehiclePool->GetSize(); i++) {
|
||||
CVehicle *pVehicle = VehiclePool->GetSlot(i);
|
||||
if(pVehicle && CVector2D(pVehicle->GetPosition() - pos).MagnitudeSqr() < radius &&
|
||||
if(pVehicle && CVector2D(pVehicle->GetPosition() - pos).MagnitudeSqr() < SQR(radius) &&
|
||||
!pVehicle->bIsLocked && pVehicle->CanBeDeleted()) {
|
||||
if(pVehicle->pDriver) {
|
||||
CPopulation::RemovePed(pVehicle->pDriver);
|
||||
|
Loading…
Reference in New Issue
Block a user