mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fixed conflicting types for cp in generate_mid_mission().
This commit is contained in:
parent
b99a719d1c
commit
3c139d8038
@ -170,8 +170,7 @@ class PretenseFlightGroupSpawner(FlightGroupSpawner):
|
|||||||
|
|
||||||
def generate_mid_mission(self) -> FlyingGroup[Any]:
|
def generate_mid_mission(self) -> FlyingGroup[Any]:
|
||||||
assert isinstance(self.flight.state, InFlight)
|
assert isinstance(self.flight.state, InFlight)
|
||||||
cp = self.flight.departure
|
name = namegen.next_pretense_aircraft_name(self.flight.departure, self.flight)
|
||||||
name = namegen.next_pretense_aircraft_name(cp, self.flight)
|
|
||||||
speed = self.flight.state.estimate_speed()
|
speed = self.flight.state.estimate_speed()
|
||||||
pos = self.flight.state.estimate_position()
|
pos = self.flight.state.estimate_position()
|
||||||
pos += Vector2(random.randint(100, 1000), random.randint(100, 1000))
|
pos += Vector2(random.randint(100, 1000), random.randint(100, 1000))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user