From 9ab8e15dd16f172c2ac36d250665a92acb87eaac Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 20 Jan 2024 22:28:32 +0100 Subject: [PATCH] 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... --- game/theater/start_generator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/theater/start_generator.py b/game/theater/start_generator.py index e6f75aa4..a1dac653 100644 --- a/game/theater/start_generator.py +++ b/game/theater/start_generator.py @@ -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}" )