diff options
author | enneract <trem.redman@gmail.com> | 2014-12-20 19:06:32 +0100 |
---|---|---|
committer | enneract <trem.redman@gmail.com> | 2014-12-20 19:06:32 +0100 |
commit | f5c4bc00cf6307c14a6037a1f0a68259e4fe2ac8 (patch) | |
tree | 6ce1bc6ed42acda27867f2661aca15d95a274635 /src/game/g_combat.c | |
parent | a3d67fdf7ea5d02d11bfd17a9df335c8a8fa248f (diff) |
Improve the output of /stats.
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index a40f7a7..7713d2a 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -1940,7 +1940,7 @@ void G_CalculateCombatRanks( void ) samples[ sample_count++ ].value = ranks->effs[ dmgtype ]; } - if( !sample_count ) + if( sample_count < 2 ) continue; qsort( samples, sample_count, sizeof( csrSample_t ), (int(*)(const void*,const void*))csrSampleCmp ); @@ -1952,6 +1952,7 @@ void G_CalculateCombatRanks( void ) if( i > 0 && fabs( last - samples[ i ].value ) > 1.0e-5 ) rank++; + ranks->ranked[ dmgtype ] = qtrue; ranks->effs_pc[ dmgtype ] = rank; last = samples[ i ].value; |