Possible to disable destroyed units.

This commit is contained in:
Khopa 2020-07-25 23:04:00 +02:00
parent d5fb1f62f5
commit 4c17e1fd33
2 changed files with 2 additions and 1 deletions

View File

@ -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="",

View File

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