Destroyed units will not remain on airfields.

This commit is contained in:
Khopa 2020-08-16 02:25:42 +02:00
parent 283cfd1ce9
commit a167b95cec

View File

@ -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