From 6c821039b5f3e0bcb200ed4c4922faa27a46b2f2 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 20 May 2021 21:46:20 -0700 Subject: [PATCH] Add a spectator slot. So I stop accidentally giving orders while testing AI behavior after waiting 20 minutes for them to get to their objective. --- game/operation/operation.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/game/operation/operation.py b/game/operation/operation.py index 3899155a..3ca893e5 100644 --- a/game/operation/operation.py +++ b/game/operation/operation.py @@ -324,13 +324,8 @@ class Operation: # Setup combined arms parameters cls.current_mission.groundControl.pilot_can_control_vehicles = cls.ca_slots > 0 - if cls.game.player_country in [ - country.name - for country in cls.current_mission.coalition["blue"].countries.values() - ]: - cls.current_mission.groundControl.blue_tactical_commander = cls.ca_slots - else: - cls.current_mission.groundControl.red_tactical_commander = cls.ca_slots + cls.current_mission.groundControl.blue_tactical_commander = cls.ca_slots + cls.current_mission.groundControl.blue_observer = 1 # Options forcedoptionsgen = ForcedOptionsGenerator(cls.current_mission, cls.game)