Fix double map skipping (#866)
This commit is contained in:
parent
5eb02e32e4
commit
0df01b9308
1 changed files with 6 additions and 4 deletions
|
@ -33,11 +33,13 @@ function ctf_match.vote_next(name)
|
||||||
minetest.chat_send_all("Vote to skip match passed, " ..
|
minetest.chat_send_all("Vote to skip match passed, " ..
|
||||||
#results.yes .. " to " .. #results.no)
|
#results.yes .. " to " .. #results.no)
|
||||||
|
|
||||||
|
if can_vote_skip then
|
||||||
can_vote_skip = false
|
can_vote_skip = false
|
||||||
voted_skip = true
|
voted_skip = true
|
||||||
if flags_hold <= 0 then
|
if flags_hold <= 0 then
|
||||||
skip()
|
skip()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
minetest.chat_send_all("Vote to skip match failed, " ..
|
minetest.chat_send_all("Vote to skip match failed, " ..
|
||||||
#results.no .. " to " .. #results.yes)
|
#results.no .. " to " .. #results.yes)
|
||||||
|
|
Loading…
Reference in a new issue