Skip to content

Commit

Permalink
Fix some vote_skip bugs (firekiller)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Dec 23, 2023
1 parent dac7b11 commit 57bd373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/ctf/ctf_modebase/skip_vote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function ctf_modebase.skip_vote.start_vote()
for _, player in ipairs(minetest.get_connected_players()) do
add_vote_hud(player)
minetest.sound_play("ctf_modebase_notification", {
gain = 1.0,
gain = 0.8,
pitch = 1.0,
}, true)
voters_count = voters_count + 1
Expand Down Expand Up @@ -176,6 +176,7 @@ local function player_vote(name, vote)
local player = minetest.get_player_by_name(name)
if hud:exists(player, "skip_vote:vote") then
hud:remove(player, "skip_vote:vote")
hud:remove(player, "skip_vote:background")
end

if voters_count == 0 then
Expand Down

0 comments on commit 57bd373

Please sign in to comment.