]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
g_maplist: update with `gametype` command, as well as GUI gametype voting
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 23 Oct 2023 16:37:48 +0000 (02:37 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 10 Feb 2024 08:16:57 +0000 (18:16 +1000)
commit0a56f137a2821149693e7acafc28ff4e67b3fd60
tree5f962d0df84951b747131060df6a5967c920ced0
parentbd7d909f5a201d0a5cb2585ba358b27a8abe4526
g_maplist: update with `gametype` command, as well as GUI gametype voting

This fixes the need to manually set g_maplist to \"\" after running the
gametype command on a votable server.

This is consistent with GUI gametype voting (sv_vote_gametype 1)
behaviour and shares its code to reduce duplication.
qcsrc/server/command/sv_cmd.qc
qcsrc/server/mapvoting.qc