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
1 changed files with 6 additions and 4 deletions

View File

@ -33,10 +33,12 @@ function ctf_match.vote_next(name)
minetest.chat_send_all("Vote to skip match passed, " ..
#results.yes .. " to " .. #results.no)
can_vote_skip = false
voted_skip = true
if flags_hold <= 0 then
skip()
if can_vote_skip then
can_vote_skip = false
voted_skip = true
if flags_hold <= 0 then
skip()
end
end
else
minetest.chat_send_all("Vote to skip match failed, " ..