Skip to content

Commit

Permalink
playerlist: possible fix for not showing enemies initially
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwetuin committed Feb 15, 2024
1 parent e18f89d commit 47dbdef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions luaui/Widgets/gui_advplayerslist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47dbdef

Please sign in to comment.