Don't eliminate playerless teams

This commit is contained in:
Kimapr 2019-12-16 08:48:03 +05:00
parent 2f52dc518a
commit 6293ca1294
1 changed files with 1 additions and 5 deletions

View File

@ -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)