]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
mapinfo: fix and rename noautomaplist flag to donotwant
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 23 Oct 2023 15:30:36 +0000 (01:30 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 10 Feb 2024 08:16:53 +0000 (18:16 +1000)
commitbd7d909f5a201d0a5cb2585ba358b27a8abe4526
tree38c25e5dd4613f57bec4635322bfd0153ff7810f
parentdf3189e33d9390422360fcaeaa362f874548f86b
mapinfo: fix and rename noautomaplist flag to donotwant

This flag was ignored in the code paths used on most servers, and its
name and behaviour were not ideal for its intended use, see
7d48e976c8a9b3f80350b2ad41d9feec2797cf76 description which seems clear
that it's for allowing a certain kind of map to be available on the
server but not be included in the usual voting pool.

This updated implementation omits the flagged maps from GUI voting and
prevents them being selected by other GotoNextMap()/GetNextMap() code
paths, unless there aren't enough viable maps in which case they
can still be used as fallbacks.

The flagged maps are always listed in CLI and may be nominated with
`suggestmap` or vcalled with `gotomap` or `nextmap`.
qcsrc/common/mapinfo.qc
qcsrc/common/mapinfo.qh
qcsrc/server/intermission.qc