mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Destroyed units will not remain on airfields.
This commit is contained in:
parent
283cfd1ce9
commit
a167b95cec
@ -378,8 +378,10 @@ class Game:
|
|||||||
|
|
||||||
return points
|
return points
|
||||||
|
|
||||||
def add_destroyed_units(self, destroyed_unit_data):
|
def add_destroyed_units(self, data):
|
||||||
self.__destroyed_units.append(destroyed_unit_data)
|
pos = Point(data["x"], data["z"])
|
||||||
|
if self.theater.is_on_land(pos):
|
||||||
|
self.__destroyed_units.append(data)
|
||||||
|
|
||||||
def get_destroyed_units(self):
|
def get_destroyed_units(self):
|
||||||
return self.__destroyed_units
|
return self.__destroyed_units
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user