From f5c4bc00cf6307c14a6037a1f0a68259e4fe2ac8 Mon Sep 17 00:00:00 2001 From: enneract Date: Sat, 20 Dec 2014 19:06:32 +0100 Subject: Improve the output of /stats. --- src/game/g_admin.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/game/g_admin.c') 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--- ---" ); } -- cgit