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_admin.c | |
parent | a3d67fdf7ea5d02d11bfd17a9df335c8a8fa248f (diff) |
Improve the output of /stats.
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r-- | src/game/g_admin.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 2cb622c..c407788 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -4443,14 +4443,21 @@ qboolean G_admin_stats( gentity_t *ent ) CSW_MAX_NAME_LEN, "Weapon" ) ); } - ADMBP( va( "%*s", CSW_MAX_NAME_LEN, cswNames[ i ] ) ); + ADMBP( va( "^3%*s", CSW_MAX_NAME_LEN, cswNames[ i ] ) ); for( j = CSD_FIRST; j < CSD_MAX; j++ ) { if( ranks->inuse[ j ] ) - ADMBP( va( " ^7%3d ^1%3d", - MIN( (int)round( ranks->effs[ j ] * 100.0f ), 999 ), - (int)round( ranks->effs_pc[ j ] * 100.0f ) ) ); + { + ADMBP( va( " ^7%3d", + MIN( (int)round( ranks->effs[ j ] * 100.0f ), 999 ) ) ); + + if( ranks->ranked[ j ] ) + ADMBP( va( " ^1%3d", + (int)round( ranks->effs_pc[ j ] * 100.0f ) ) ); + else + ADMBP( " ^0n/a" ); + } else ADMBP( " ^0--- ---" ); } |