summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
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/game/g_main.c
parentd61c016fcc2f1a693e94a2fe72f6f32f625ebe2c (diff)
do not publish gamestats
TODO: remove the remnants
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 2d3be8e1..e388c878 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1739,93 +1739,6 @@ void QDECL G_LogPrintf( const char *fmt, ... )
}
/*
-=================
-G_SendGameStat
-=================
-*/
-void G_SendGameStat( team_t team )
-{
- char map[ MAX_STRING_CHARS ];
- char teamChar;
- char data[ BIG_INFO_STRING ];
- char entry[ MAX_STRING_CHARS ];
- int i, dataLength, entryLength;
- gclient_t *cl;
-
- // games with cheats enabled are not very good for balance statistics
- if( g_cheats.integer )
- return;
-
- trap_Cvar_VariableStringBuffer( "mapname", map, sizeof( map ) );
-
- switch( team )
- {
- case TEAM_ALIENS: teamChar = 'A'; break;
- case TEAM_HUMANS: teamChar = 'H'; break;
- case TEAM_NONE: teamChar = 'L'; break;
- default: return;
- }
-
- Com_sprintf( data, BIG_INFO_STRING,
- "%s %s T:%c A:%f H:%f M:%s D:%d SD:%d AS:%d AS2T:%d AS3T:%d HS:%d HS2T:%d HS3T:%d CL:%d",
- Q3_VERSION,
- g_tag.string,
- teamChar,
- level.averageNumAlienClients,
- level.averageNumHumanClients,
- map,
- level.time - level.startTime,
- G_TimeTilSuddenDeath( ),
- g_alienStage.integer,
- level.alienStage2Time - level.startTime,
- level.alienStage3Time - level.startTime,
- g_humanStage.integer,
- level.humanStage2Time - level.startTime,
- level.humanStage3Time - level.startTime,
- level.numConnectedClients );
-
- dataLength = strlen( data );
-
- for( i = 0; i < level.numConnectedClients; i++ )
- {
- int ping;
-
- cl = &level.clients[ level.sortedClients[ i ] ];
-
- if( cl->pers.connected == CON_CONNECTING )
- ping = -1;
- else
- ping = cl->ps.ping < 999 ? cl->ps.ping : 999;
-
- switch( cl->ps.stats[ STAT_TEAM ] )
- {
- case TEAM_ALIENS: teamChar = 'A'; break;
- case TEAM_HUMANS: teamChar = 'H'; break;
- case TEAM_NONE: teamChar = 'S'; break;
- default: return;
- }
-
- Com_sprintf( entry, MAX_STRING_CHARS,
- " \"%s\" %c %d %d %d",
- cl->pers.netname,
- teamChar,
- cl->ps.persistant[ PERS_SCORE ],
- ping,
- ( level.time - cl->pers.enterTime ) / 60000 );
-
- entryLength = strlen( entry );
-
- if( dataLength + entryLength >= BIG_INFO_STRING )
- break;
-
- strcpy( data + dataLength, entry );
- dataLength += entryLength;
- }
-
- trap_SendGameStat( data );
-}
-
-/*
================
LogExit
@@ -1882,8 +1795,6 @@ void LogExit( const char *string )
ent->use( ent, ent, ent );
}
}
-
- G_SendGameStat( level.lastWin );
}