From 28fdfa64b53c627e5ec4e612341ade919ad06f9e Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 4 Feb 2015 12:46:34 +0100 Subject: do not publish gamestats TODO: remove the remnants --- src/server/server.h | 1 - src/server/sv_game.c | 1 - src/server/sv_main.c | 33 --------------------------------- 3 files changed, 35 deletions(-) (limited to 'src/server') diff --git a/src/server/server.h b/src/server/server.h index 57d34b5b..d5e69eb2 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -321,7 +321,6 @@ void SV_RemoveOperatorCommands (void); void SV_MasterShutdown (void); -void SV_MasterGameStat( const char *data ); int SV_RateMsec(client_t *client); diff --git a/src/server/sv_game.c b/src/server/sv_game.c index c9b317fc..734d4559 100644 --- a/src/server/sv_game.c +++ b/src/server/sv_game.c @@ -419,7 +419,6 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) { return 0; case G_SEND_GAMESTAT: - SV_MasterGameStat( VMA(1) ); return 0; //==================================== diff --git a/src/server/sv_main.c b/src/server/sv_main.c index 6082c998..ec0954a5 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -331,39 +331,6 @@ void SV_MasterShutdown( void ) { // it will be removed from the list } -/* -================= -SV_MasterGameStat -================= -*/ -void SV_MasterGameStat( const char *data ) -{ - netadr_t adr; - - if( !com_dedicated || com_dedicated->integer != 2 ) - return; // only dedicated servers send stats - - Com_Printf( "Resolving %s\n", MASTER_SERVER_NAME ); - - switch( NET_StringToAdr( MASTER_SERVER_NAME, &adr, NA_UNSPEC ) ) - { - case 0: - Com_Printf( "Couldn't resolve master address: %s\n", MASTER_SERVER_NAME ); - return; - - case 2: - adr.port = BigShort( PORT_MASTER ); - default: - break; - } - - Com_Printf( "%s resolved to %s\n", MASTER_SERVER_NAME, - NET_AdrToStringwPort( adr ) ); - - Com_Printf( "Sending gamestat to %s\n", MASTER_SERVER_NAME ); - NET_OutOfBandPrint( NS_SERVER, adr, "gamestat %s", data ); -} - /* ============================================================================== -- cgit