player count inacurate in rated battlegrounds
bullsei opened this issue ยท 1 comments
Hi, i noticed that the playercount shown in the horde and alliance flag is not accurate in rated battlegrounds when players are leaving. Thats because the scoreboard will still show 10 enemys even tho an enemy left. Its possible to solve this by replacing local na, nh for i = 1, GetNumBattlefieldScores(), 1 do local _, _, _, _, _, ifaction = GetBattlefieldScore(i) if ifaction == 0 then nh = (nh or 0) + 1 elseif ifaction == 1 then na = (na or 0) + 1 end end
with
local _, _, _, _, nh = GetBattlefieldTeamInfo(0) local _, _, _, _, na = GetBattlefieldTeamInfo(1)