Fix double map skipping (#866)

This commit is contained in:
savilli 2021-04-16 19:24:24 +03:00 committed by GitHub
parent 5eb02e32e4
commit 0df01b9308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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