Fix a fatal error in allies05a
This commit is contained in:
@@ -89,15 +89,19 @@ end
|
|||||||
InitAIEconomy = function()
|
InitAIEconomy = function()
|
||||||
ussr.Cash = 6000
|
ussr.Cash = 6000
|
||||||
|
|
||||||
|
if not Harvester.IsDead then
|
||||||
Harvester.FindResources()
|
Harvester.FindResources()
|
||||||
ProtectHarvester(Harvester)
|
ProtectHarvester(Harvester)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
InitProductionBuildings = function()
|
InitProductionBuildings = function()
|
||||||
if not Warfactory2.IsDead then
|
if not Warfactory2.IsDead then
|
||||||
Warfactory2.IsPrimaryBuilding = true
|
Warfactory2.IsPrimaryBuilding = true
|
||||||
end
|
|
||||||
Trigger.OnKilled(Warfactory2, function() BuildVehicles = false end)
|
Trigger.OnKilled(Warfactory2, function() BuildVehicles = false end)
|
||||||
|
else
|
||||||
|
BuildVehicles = false
|
||||||
|
end
|
||||||
|
|
||||||
if not Barracks2.IsDead then
|
if not Barracks2.IsDead then
|
||||||
Barracks2.IsPrimaryBuilding = true
|
Barracks2.IsPrimaryBuilding = true
|
||||||
@@ -115,6 +119,10 @@ InitProductionBuildings = function()
|
|||||||
Trigger.OnKilled(Barracks3, function() if Barracks2.IsDead then TrainInfantry = false end end)
|
Trigger.OnKilled(Barracks3, function() if Barracks2.IsDead then TrainInfantry = false end end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Barracks2.IsDead and Barracks3.IsDead then
|
||||||
|
TrainInfantry = false
|
||||||
|
end
|
||||||
|
|
||||||
if Map.Difficulty == "Normal" then
|
if Map.Difficulty == "Normal" then
|
||||||
|
|
||||||
if not Airfield1.IsDead then
|
if not Airfield1.IsDead then
|
||||||
|
|||||||
Reference in New Issue
Block a user