jdolan / quetoo

Quetoo ("Q2") is a free first person shooter based on id Tech2. GPL v2 license.
http://quetoo.org
204 stars 28 forks source link

make map_name a cvar again, partially revert 21559d3 #548

Closed illwieckz closed 6 years ago

illwieckz commented 6 years ago

The map_name cvar was deleted in commit 21559d3 (see this deleted line).

This cvar is useful because it's expected to be written within server reply packet, it allows server query tools like qstat and server browsers like XQF to get the name of the map currently played while listing servers to player. See #547.

I used the map_name cvar name that was used before deletion in 21559d3. If you prefer another name (like sv_map_name for example) I can change it.

Edit: map_name sounds to be a good name, it's coherent with game_name.