From d78ac2d7e44083d38685ba4bab3a88726d82464e Mon Sep 17 00:00:00 2001 From: GreenBlob Date: Wed, 22 May 2024 10:45:55 +0800 Subject: [PATCH] Show summery formspec if match skipped --- mods/ctf/ctf_modebase/skip_vote.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mods/ctf/ctf_modebase/skip_vote.lua b/mods/ctf/ctf_modebase/skip_vote.lua index 0f90e553f..32bf5ce29 100644 --- a/mods/ctf/ctf_modebase/skip_vote.lua +++ b/mods/ctf/ctf_modebase/skip_vote.lua @@ -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