From 6b892b39592bc3fdf7e94616917f39ec071d390d Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 3 Dec 2006 23:01:59 +0000 Subject: * Strip leading whitespace when displaying server names in the browser * Sort by server name on alpha characters only * Refresh master server IP address cache on map change --- src/server/sv_ccmds.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/sv_ccmds.c') diff --git a/src/server/sv_ccmds.c b/src/server/sv_ccmds.c index a89b0f21..d0b5956b 100644 --- a/src/server/sv_ccmds.c +++ b/src/server/sv_ccmds.c @@ -157,6 +157,7 @@ static void SV_Map_f( void ) { qboolean killBots, cheat; char expanded[MAX_QPATH]; char mapname[MAX_QPATH]; + int i; map = Cmd_Argv(1); if ( !map ) { @@ -196,6 +197,11 @@ static void SV_Map_f( void ) { } else { Cvar_Set( "sv_cheats", "0" ); } + + // This forces the local master server IP address cache + // to be updated on sending the next heartbeat + for( i = 0; i < MAX_MASTER_SERVERS; i++ ) + sv_master[ i ]->modified = qtrue; } /* -- cgit