fixed bug where only one tile was processed.
This commit is contained in:
parent
9718e233b4
commit
810c65399e
|
@ -676,11 +676,9 @@ TArray<FString> AVegetationManager::GetTilesInUse()
|
||||||
const FBox Box = Procedural->ProceduralComponent->GetBounds();
|
const FBox Box = Procedural->ProceduralComponent->GetBounds();
|
||||||
if (!Box.IsValid)
|
if (!Box.IsValid)
|
||||||
continue;
|
continue;
|
||||||
if (Box.IsInside(HeroVehicle->GetActorLocation()))
|
const FTransform GlobalTransform = LargeMap->LocalToGlobalTransform(HeroVehicle->GetActorTransform());
|
||||||
{
|
if (Box.IsInside(GlobalTransform.GetLocation()))
|
||||||
Results.Emplace(Element.Key);
|
Results.Emplace(Element.Key);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return Results;
|
return Results;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue