mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix airlifts always using player country.
This commit is contained in:
parent
e49da6afd6
commit
6b30f47588
@ -205,6 +205,11 @@ class Game:
|
||||
return self.player_faction
|
||||
return self.enemy_faction
|
||||
|
||||
def country_for(self, player: bool) -> str:
|
||||
if player:
|
||||
return self.player_country
|
||||
return self.enemy_country
|
||||
|
||||
def bullseye_for(self, player: bool) -> Bullseye:
|
||||
if player:
|
||||
return self.blue_bullseye
|
||||
|
||||
@ -253,7 +253,7 @@ class AirliftPlanner:
|
||||
|
||||
flight = Flight(
|
||||
self.package,
|
||||
self.game.player_country,
|
||||
self.game.country_for(inventory.control_point.captured),
|
||||
unit_type,
|
||||
flight_size,
|
||||
FlightType.TRANSPORT,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user