r3383 - in trunk/data/qcsrc/menu: . nexuiz

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Feb 16 08:06:50 EST 2008


Author: div0
Date: 2008-02-16 08:06:38 -0500 (Sat, 16 Feb 2008)
New Revision: 3383

Modified:
   trunk/data/qcsrc/menu/mbuiltin.qh
   trunk/data/qcsrc/menu/nexuiz/maplist.c
Log:
set a sensible value of "hostname" when creating a server


Modified: trunk/data/qcsrc/menu/mbuiltin.qh
===================================================================
--- trunk/data/qcsrc/menu/mbuiltin.qh	2008-02-16 08:50:37 UTC (rev 3382)
+++ trunk/data/qcsrc/menu/mbuiltin.qh	2008-02-16 13:06:38 UTC (rev 3383)
@@ -259,6 +259,8 @@
 float(string s1, string s2) strcasecmp = #229;
 float(string s1, string s2, float len) strncasecmp = #230;
 
+string(string s) strdecolorize(string s) = #477;
+
 //DP_QC_STRINGBUFFERS
 //idea: ??
 //darkplaces implementation: LordHavoc
@@ -289,6 +291,8 @@
 float CVAR_TYPEFLAG_ENGINE = 8;
 float CVAR_TYPEFLAG_HASDESCRIPTION = 16;
 
+
+
 #ifdef FIXEDFOPEN
 float 	fopen( string filename, float mode ) =
 {

Modified: trunk/data/qcsrc/menu/nexuiz/maplist.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/maplist.c	2008-02-16 08:50:37 UTC (rev 3382)
+++ trunk/data/qcsrc/menu/nexuiz/maplist.c	2008-02-16 13:06:38 UTC (rev 3383)
@@ -247,7 +247,7 @@
 		return;
 	if(MapInfo_CheckMap(m))
 	{
-		localcmd("\ndisconnect\nwait\nmaxplayers $menu_maxplayers\ng_maplist_shufflenow\n");
+		localcmd("\ndisconnect\nwait\nmaxplayers $menu_maxplayers\ng_maplist_shufflenow\nhostname \"", strdecolorize(cvar_string("_cl_name")), "'s Nexuiz server\"\n");
 		MapInfo_LoadMap(m);
 	}
 	else




More information about the nexuiz-commits mailing list