Skip to content

Commit e635b4b

Browse files
committed
Bugfix for teams that aren't playing
1 parent cf04e71 commit e635b4b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

mods/ctf/ctf_modebase/recent_rankings.lua

+11-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,17 @@ return {
7676
rankings_teams = {}
7777
end,
7878
players = function() return rankings_players end,
79-
teams = function() return rankings_teams end,
79+
teams = function()
80+
local out = {}
81+
82+
for k, v in pairs(rankings_teams) do
83+
if not ctf_teams.team[k].not_playing then
84+
out[k] = v
85+
end
86+
end
87+
88+
return out
89+
end,
8090
}
8191

8292
end

0 commit comments

Comments
 (0)