From de78d48d2dff1cf4f6a3465da32dfa78a9c0e93a Mon Sep 17 00:00:00 2001 From: GreenBlob <88883098+a-blob@users.noreply.github.com> Date: Wed, 5 Jun 2024 03:59:45 +0800 Subject: [PATCH] Show summary formspec if match skipped (#1293) * Show summery formspec if match skipped * Show map in summary formspec * Move map info position * Oooops, wrong branch * Revert changes * Revert all changes --------- Co-authored-by: GreenBlob <19584306-OrangeBlob@users.noreply.gitlab.com> Co-authored-by: LoneWolfHT --- 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 0f90e553f5..32bf5ce29a 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