Skip to content

Commit

Permalink
Show summery formspec if match skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
a-blob committed May 22, 2024
1 parent 2837285 commit d78ac2d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mods/ctf/ctf_modebase/skip_vote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ function ctf_modebase.skip_vote.end_vote()

voted_skip = true
if flags_hold <= 0 then
ctf_modebase.summary.set_winner("NO WINNER")

local match_rankings, special_rankings, rank_values, formdef = ctf_modebase.summary.get()
formdef.title = "Match Skipped"

for _, p in ipairs(minetest.get_connected_players()) do
ctf_modebase.summary.show_gui(p:get_player_name(), match_rankings, special_rankings, rank_values, formdef)
end

ctf_modebase.start_new_match(5)
end
else
Expand Down

0 comments on commit d78ac2d

Please sign in to comment.