Skip to content
Permalink
Browse files

fixed AI faction selection

  • Loading branch information...
Damgam committed Sep 10, 2019
1 parent f276d71 commit a05890b3966cf6017823e3777381b8c6d0120f41
Showing with 2 additions and 1 deletion.
  1. +2 −1 LuaRules/Gadgets/game_spawn.lua
@@ -86,7 +86,8 @@ local function GetStartUnit(teamID)

if IsTeamAI(teamID) then
Spring.Echo ("Enemy is an AI so it gets an AI Specific Overseer!")
local sidedata = Spring.GetSideData(side)
--local factionrandom = math.random(0,1)
local sidedata = factionDefComms[math.random(0,1)]
if sidedata == nil then
Spring.Echo("faction: nil")
else

0 comments on commit a05890b

Please sign in to comment.
You can’t perform that action at this time.