r5025 - in trunk/data: . qcsrc/menu/nexuiz
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Nov 9 13:23:30 EST 2008
Author: div0
Date: 2008-11-09 13:23:29 -0500 (Sun, 09 Nov 2008)
New Revision: 5025
Modified:
trunk/data/defaultNexuiz.cfg
trunk/data/qcsrc/menu/nexuiz/maplist.c
Log:
menu_use_default_hostname, sethostname command to override the menu's hostname
Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg 2008-11-09 10:23:22 UTC (rev 5024)
+++ trunk/data/defaultNexuiz.cfg 2008-11-09 18:23:29 UTC (rev 5025)
@@ -1078,6 +1078,8 @@
set menu_mouse_absolute 0 // TODO make this seta if the engine understands this right
seta menu_mouse_speed 1
+set menu_use_default_hostname 1
+alias sethostname "set menu_use_default_hostname 0; hostname $*"
// force fog for people who turn it off in game (set this to like 5 if you suspect people are "cheating" that way)
set sv_foginterval 0
Modified: trunk/data/qcsrc/menu/nexuiz/maplist.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/maplist.c 2008-11-09 10:23:22 UTC (rev 5024)
+++ trunk/data/qcsrc/menu/nexuiz/maplist.c 2008-11-09 18:23:29 UTC (rev 5025)
@@ -274,7 +274,9 @@
}
if(MapInfo_CheckMap(m))
{
- localcmd("\ndisconnect\nwait\nmaxplayers $menu_maxplayers\ng_maplist_shufflenow\nhostname \"", strdecolorize(cvar_string("_cl_name")), "'s Nexuiz server\"\n");
+ localcmd("\ndisconnect\nwait\nmaxplayers $menu_maxplayers\ng_maplist_shufflenow\n");
+ if(cvar("menu_use_default_hostname"))
+ localcmd("hostname \"", strdecolorize(cvar_string("_cl_name")), "'s Nexuiz server\"\n");
MapInfo_LoadMap(m);
}
else
More information about the nexuiz-commits
mailing list