From 47dbdef023d968d59f70e016acb87c5b9234d1ad Mon Sep 17 00:00:00 2001 From: Floris Date: Thu, 15 Feb 2024 16:35:45 +0100 Subject: [PATCH] playerlist: possible fix for not showing enemies initially --- luaui/Widgets/gui_advplayerslist.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/luaui/Widgets/gui_advplayerslist.lua b/luaui/Widgets/gui_advplayerslist.lua index aa36994414e..87963fa19ca 100644 --- a/luaui/Widgets/gui_advplayerslist.lua +++ b/luaui/Widgets/gui_advplayerslist.lua @@ -1088,10 +1088,11 @@ function GetAliveAllyTeams() aliveAllyTeams = {} local allteams = Spring_GetTeamList() teamN = table.maxn(allteams) - 1 --remove gaia + local gf = Spring.GetGameFrame() for i = 0, teamN - 1 do - local _, _, isDead, _, _, tallyteam = Spring_GetTeamInfo(i, false) - if not isDead then - aliveAllyTeams[tallyteam] = true + local _, _, isDead, _, _, allyTeam = Spring_GetTeamInfo(i, false) + if not isDead or gf == 0 then + aliveAllyTeams[allyTeam] = true end end end