[quake3-commits] r1730 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Nov 3 19:42:22 EST 2009


Author: thilo
Date: 2009-11-03 19:42:22 -0500 (Tue, 03 Nov 2009)
New Revision: 1730

Modified:
   trunk/code/qcommon/net_ip.c
Log:
Different default values for multicast-scope on Windows and non-Windows OS


Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c	2009-11-03 20:44:16 UTC (rev 1729)
+++ trunk/code/qcommon/net_ip.c	2009-11-04 00:42:22 UTC (rev 1730)
@@ -999,7 +999,7 @@
 	if(*net_mcast6iface->string)
 	{
 #ifdef _WIN32
-		curgroup.ipv6mr_interface = atoi(net_mcast6iface->string);
+		curgroup.ipv6mr_interface = net_mcast6iface->integer;
 #else
 		curgroup.ipv6mr_interface = if_nametoindex(net_mcast6iface->string);
 #endif
@@ -1474,7 +1474,11 @@
 	modified += net_mcast6addr->modified;
 	net_mcast6addr->modified = qfalse;
 
+#ifdef _WIN32
 	net_mcast6iface = Cvar_Get( "net_mcast6iface", "0", CVAR_LATCH | CVAR_ARCHIVE );
+#else
+	net_mcast6iface = Cvar_Get( "net_mcast6iface", "", CVAR_LATCH | CVAR_ARCHIVE );
+#endif
 	modified += net_mcast6iface->modified; 
 	net_mcast6iface->modified = qfalse;
 



More information about the quake3-commits mailing list