diff --git a/game/operation/operation.py b/game/operation/operation.py index cf7e7b12..a4079373 100644 --- a/game/operation/operation.py +++ b/game/operation/operation.py @@ -127,7 +127,7 @@ class Operation: for d in self.game.get_destroyed_units(): utype = db.unit_type_from_name(d["type"]) pos = Point(d["x"], d["z"]) - if utype is not None and not self.game.position_culled(pos): + if utype is not None and not self.game.position_culled(pos) and self.game.settings.perf_destroyed_units: self.current_mission.static_group( country=self.current_mission.country(self.game.player_country), name="", diff --git a/game/settings.py b/game/settings.py index 3c497e1a..4ec598ed 100644 --- a/game/settings.py +++ b/game/settings.py @@ -24,6 +24,7 @@ class Settings: perf_moving_units = True perf_infantry = True perf_ai_parking_start = True + perf_destroyed_units = True # Performance culling perf_culling = False