Skip to content

Commit

Permalink
Add logging for map duration
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Oct 13, 2024
1 parent 7275365 commit 702506a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ return {
recent_rankings.on_match_end()

if ctf_map.current_map then
minetest.log("action",
"matchend: Match ended for map "..ctf_map.current_map.name..
" in mode "..(ctf_modebase.current_mode or "<nil>")..
". Duration: "..ctf_map.get_duration()
)
-- Queue deletion for after the players have left
delete_queue = {ctf_map.current_map.pos1, ctf_map.current_map.pos2}
end
Expand Down

0 comments on commit 702506a

Please sign in to comment.