diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/cl_parse.c | 2 | ||||
-rw-r--r-- | src/qcommon/net_ip.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c index 03967927..7a75239e 100644 --- a/src/client/cl_parse.c +++ b/src/client/cl_parse.c @@ -530,7 +530,7 @@ void CL_ParseGamestate( msg_t *msg ) { CL_StopRecord_f(); // reinitialize the filesystem if the game directory has changed - if(FS_ConditionalRestart(clc.checksumFeed, qfalse) && !cls.oldGame[0]) + if(FS_ConditionalRestart(clc.checksumFeed, qfalse) && !cls.oldGameSet) { cls.oldGameSet = qtrue; Q_strncpyz(cls.oldGame, oldGame, sizeof(cls.oldGame)); diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index d7dc8b5f..b6a158ce 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -1287,6 +1287,8 @@ static void NET_GetLocalAddress(void) { struct ifaddrs *ifap, *search; + numIP = 0; + if(getifaddrs(&ifap)) Com_Printf("NET_GetLocalAddress: Unable to get list of network interfaces: %s\n", NET_ErrorString()); else @@ -1309,6 +1311,8 @@ static void NET_GetLocalAddress( void ) { struct addrinfo hint; struct addrinfo *res = NULL; + numIP = 0; + if(gethostname( hostname, 256 ) == SOCKET_ERROR) return; |