summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-04 12:46:34 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:07 +0100
commit28fdfa64b53c627e5ec4e612341ade919ad06f9e (patch)
tree2f3c25a0aa3fab944180731dd97dd5df2d16bb64 /src/server
parentd61c016fcc2f1a693e94a2fe72f6f32f625ebe2c (diff)
do not publish gamestats
TODO: remove the remnants
Diffstat (limited to 'src/server')
-rw-r--r--src/server/server.h1
-rw-r--r--src/server/sv_game.c1
-rw-r--r--src/server/sv_main.c33
3 files changed, 0 insertions, 35 deletions
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
@@ -332,39 +332,6 @@ void SV_MasterShutdown( void ) {
}
/*
-=================
-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 );
-}
-
-/*
==============================================================================
CONNECTIONLESS COMMANDS