mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Possible to disable destroyed units.
This commit is contained in:
parent
d5fb1f62f5
commit
4c17e1fd33
@ -127,7 +127,7 @@ class Operation:
|
|||||||
for d in self.game.get_destroyed_units():
|
for d in self.game.get_destroyed_units():
|
||||||
utype = db.unit_type_from_name(d["type"])
|
utype = db.unit_type_from_name(d["type"])
|
||||||
pos = Point(d["x"], d["z"])
|
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(
|
self.current_mission.static_group(
|
||||||
country=self.current_mission.country(self.game.player_country),
|
country=self.current_mission.country(self.game.player_country),
|
||||||
name="",
|
name="",
|
||||||
|
|||||||
@ -24,6 +24,7 @@ class Settings:
|
|||||||
perf_moving_units = True
|
perf_moving_units = True
|
||||||
perf_infantry = True
|
perf_infantry = True
|
||||||
perf_ai_parking_start = True
|
perf_ai_parking_start = True
|
||||||
|
perf_destroyed_units = True
|
||||||
|
|
||||||
# Performance culling
|
# Performance culling
|
||||||
perf_culling = False
|
perf_culling = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user