AI Strike flight with user generated STRIKE, will now perform their bombing task correctly.

This commit is contained in:
Khopa
2020-05-31 18:02:00 +02:00
parent 0b9d827ad6
commit 02886a09d3
4 changed files with 23 additions and 18 deletions

View File

@@ -105,6 +105,7 @@ class QPredefinedWaypointSelectionComboBox(QComboBox):
wpt.name = wpt.name = "[" + str(ground_object.obj_name) + "] : " + ground_object.category + " #" + str(ground_object.object_id)
wpt.pretty_name = wpt.name
wpt.obj_name = ground_object.obj_name
wpt.targets.append(ground_object)
if cp.captured:
wpt.description = "Friendly Building"
else:
@@ -120,6 +121,7 @@ class QPredefinedWaypointSelectionComboBox(QComboBox):
wpt = FlightWaypoint(u.position.x, u.position.y, 0)
wpt.name = wpt.name = "[" + str(ground_object.obj_name) + "] : " + u.type + " #" + str(j)
wpt.pretty_name = wpt.name
wpt.targets.append(u)
wpt.obj_name = ground_object.obj_name
if cp.captured:
wpt.description = "Friendly unit : " + u.type