From 621f91783cc0551a95751d4f30871d40b796dce8 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 4 Nov 2009 00:42:22 +0000 Subject: [PATCH] Different default values for multicast-scope on Windows and non-Windows OS --- code/qcommon/net_ip.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index 0d438b5d..7ffb8a84 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -999,7 +999,7 @@ void NET_SetMulticast6(void) 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 @@ static qboolean NET_GetCvars( void ) { 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;