summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-12-19 20:38:46 +0100
committerenneract <trem.redman@gmail.com>2014-12-19 20:38:46 +0100
commit3a7015bd646110a378c3b5f0a8638368f2827788 (patch)
tree07cb29caa192f462664b5881b9cbaf7f7502a5a0 /src/game/g_main.c
parent3afe13c2a292e0940a05634b322300ccd1238541 (diff)
Implement combat statistics.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 5b6b025..fb11594 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -2235,6 +2235,18 @@ void LogExit( const char *string )
}
+ for( i = 0; i < MAX_CLIENTS; i++ )
+ {
+ gentity_t *ent = g_entities + i;
+
+ if( !ent->inuse ||
+ !ent->client ||
+ ent->client->pers.connected == CON_CONNECTING )
+ continue;
+
+ G_LogCombatStats( ent );
+ }
+
for( i = 1, ent = g_entities + i ; i < level.num_entities ; i++, ent++ )
{
if( !ent->inuse )