]> git.xonotic.org Git - xonotic/darkplaces.git/commit
server: always use correct case for map names
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 8 Feb 2024 20:21:05 +0000 (06:21 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 9 Feb 2024 07:14:46 +0000 (17:14 +1000)
commit4223c283a73c5f2774a6e01515246dfc511889b7
treef00aa06b591363f2379bae26e6eec975987ce6d1
parentbec702479a73a63e5454bd7aef014a8ab335e030
server: always use correct case for map names

Previously whatever was typed in as the map/changelevel argument was
used even if it didn't match the case of the filename in the pak, which
meant QC could see multiple instances of the same map that differed only
by case, causing problems for gameplay stats.

Now DP will always use the same case as the real .bsp filename for the
`mapname` globals, and the sv_world* and cl_world* cvars, and the server
status and getinfo/getstatus responses.  This matches the behaviour of
QC code which retrieved the name from the VFS, such as the `gotomap` and
voting code in Nexuiz and Xonotic.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
fs.c
fs.h
netconn.c
server.h
sv_ccmds.c
sv_main.c
sv_save.c