Skip to content

Commit

Permalink
Show summary formspec if match skipped (#1293)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: LoneWolfHT <[email protected]>
  • Loading branch information
3 people authored Jun 4, 2024
1 parent af02c57 commit de78d48
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 de78d48

Please sign in to comment.