Fix things

This commit is contained in:
rubenwardy 2015-11-25 20:58:00 +00:00
parent 64d44aa615
commit a8abae4497
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,6 @@ ctf.register_on_new_game(function()
ctf.log("match", "Setting up new game!")
teams = teams:split(";")
local pos = {}
for i, v in pairs(teams) do
local team = v:split(",")
if #team == 5 then
@ -47,7 +46,7 @@ ctf.register_on_new_game(function()
local x = tonumber(team[3]:trim())
local y = tonumber(team[4]:trim())
local z = tonumber(team[5]:trim())
pos[name] = {
local flag = {
x = x,
y = y,
z = z
@ -59,7 +58,8 @@ ctf.register_on_new_game(function()
add_team = true
})
ctf_flag.add(name, pos[name])
ctf_flag.add(name, flag)
ctf_flag.assert_flag(flag)
else
ctf.warning("match", "Invalid team setup: " .. dump(v))
end

@ -1 +1 @@
Subproject commit 0a4f30df25a96f250d4a994a7e101a9e3225c063
Subproject commit a914b43439e8ebd2daf4f8b8f0a4fc5c50ead66f