diff options
author | enneract <trem.redman@gmail.com> | 2014-12-19 20:38:46 +0100 |
---|---|---|
committer | enneract <trem.redman@gmail.com> | 2014-12-19 20:38:46 +0100 |
commit | 3a7015bd646110a378c3b5f0a8638368f2827788 (patch) | |
tree | 07cb29caa192f462664b5881b9cbaf7f7502a5a0 /src/game/g_main.c | |
parent | 3afe13c2a292e0940a05634b322300ccd1238541 (diff) |
Implement combat statistics.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 12 |
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 ) |