mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Avoid incompatible mix of SR/TR/LN units
The call to 'add_or_update_force_group' would end up merging the force-groups, which in turn could cause SAM sites to have an SA-2 SR & TR with SA-6 launchers...
This commit is contained in:
parent
febc901518
commit
9ab8e15dd1
@ -332,9 +332,8 @@ class AirbaseGroundObjectGenerator(ControlPointGroundObjectGenerator):
|
||||
if g.unit_class in ug.unit_classes:
|
||||
fg.units.append(g)
|
||||
unit_group: Optional[ForceGroup] = fg
|
||||
self.armed_forces.add_or_update_force_group(fg)
|
||||
else:
|
||||
if fg and not valid_fg:
|
||||
if fg:
|
||||
logging.warning(
|
||||
f"Override in ground_forces failed for {fg} at {position.original_name}"
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user