From 13c0ff67b099b598176e6000ca85de22b8c06c34 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Thu, 4 Jun 2020 18:57:16 -0700 Subject: [PATCH] Fix from Iran and Omniblade from the Chronoshift discord, fixes units autobuilding. --- REDALERT/SCENARIO.CPP | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/REDALERT/SCENARIO.CPP b/REDALERT/SCENARIO.CPP index 44c9ed4..1148f12 100644 --- a/REDALERT/SCENARIO.CPP +++ b/REDALERT/SCENARIO.CPP @@ -2382,9 +2382,11 @@ bool Read_Scenario_INI(char * fname, bool ) PlayerPtr->Credits += carryover; PlayerPtr->Control.InitialCredits += carryover; } else { - //Call the new Assign_Houses function. ST - 8/8/2019 12:35PM - //Assign_Houses(); - GlyphX_Assign_Houses(); +// jmarshall - Thanks Iran and OmniBlade from the Choronoshift Discord! +// This fixes ai building player controlled factions. + Assign_Houses(); + //GlyphX_Assign_Houses(); +// jmarshall end } PlayerPtr->IsHuman = true; PlayerPtr->IsPlayerControl = true;