Don't eliminate playerless teams
This commit is contained in:
parent
2f52dc518a
commit
6293ca1294
6
init.lua
6
init.lua
|
@ -269,11 +269,7 @@ end
|
|||
|
||||
function ctf.check_win()
|
||||
for name,team in pairs(ctf.teams) do
|
||||
local pc = 0
|
||||
for k,v in pairs(team.players) do
|
||||
pc=pc+1
|
||||
end
|
||||
if team.score <= 0 or pc == 0 then
|
||||
if team.score <= 0 then
|
||||
ctf.teams[name] = nil
|
||||
for pname,pl in pairs(team.players) do
|
||||
ctf.set_text(pname,":(\nYour team lost.",teams[name].colornum)
|
||||
|
|
Loading…
Reference in New Issue