Fix Anti-Ship being planned against original location

This commit is contained in:
Raffson 2024-07-20 01:25:36 +02:00
parent 0d56c271df
commit 141fc642d5
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -323,7 +323,9 @@ class WaypointBuilder:
return FlightWaypoint( return FlightWaypoint(
target.name, target.name,
FlightWaypointType.TARGET_POINT, FlightWaypointType.TARGET_POINT,
target.target.position, target.target.ground_object.position
if isinstance(target.target, (TheaterGroup, TheaterUnit))
else target.target.position,
meters(0), meters(0),
"RADIO", "RADIO",
description=description, description=description,