]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
g_maplist: refactor initialisation
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 23 Oct 2023 21:25:32 +0000 (07:25 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 10 Feb 2024 08:16:57 +0000 (18:16 +1000)
commit01d975ef584acf1cfd3ecc739955ee10f916c75c
treef120a492a93da0577ee4478b0160778a7fc450c4
parent0a56f137a2821149693e7acafc28ff4e67b3fd60
g_maplist: refactor initialisation

Reduces code duplication.

Checks/initialises once when adding maps to the voting screen, instead
of doing it again for each map added.

Always uses gametype-specific g_maplist generation, instead of sometimes
including maps from other gametypes (depending which code path was used).

Updates some declarations and removes an unused global.
qcsrc/server/command/sv_cmd.qc
qcsrc/server/intermission.qc
qcsrc/server/intermission.qh
qcsrc/server/mapvoting.qc
qcsrc/server/mapvoting.qh
qcsrc/server/world.qc