summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-19 21:00:09 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:57 +0000
commit8a0677cf7a26f6a4dffc42b747da7e5ff754f386 (patch)
treeadf17b3f71fa6ffe2ea3af52a675b6229ee57af6 /src/cgame
parent92a9136413e1d246838a3b8ff7e67f724ee29706 (diff)
* Add game_memory and cgame_memory commands to give a breakdown of memory
* Make clientlist team colors more consistent with team colors elsewhere
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_consolecmds.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cgame/cg_consolecmds.c b/src/cgame/cg_consolecmds.c
index da583214..030660a6 100644
--- a/src/cgame/cg_consolecmds.c
+++ b/src/cgame/cg_consolecmds.c
@@ -158,17 +158,19 @@ void CG_ClientList_f( void )
switch( ci->team )
{
case TEAM_ALIENS:
- Com_Printf( "%2d ^1A ^7%s^7\n", i, ci->name );
+ Com_Printf( "%2d " S_COLOR_RED "A " S_COLOR_WHITE "%s\n", i,
+ ci->name );
break;
case TEAM_HUMANS:
- Com_Printf( "%2d ^4H ^7%s^7\n", i, ci->name );
+ Com_Printf( "%2d " S_COLOR_CYAN "H " S_COLOR_WHITE "%s\n", i,
+ ci->name );
break;
default:
case TEAM_NONE:
case NUM_TEAMS:
- Com_Printf( "%2d ^3S ^7%s^7\n", i, ci->name );
+ Com_Printf( "%2d S %s\n", i, ci->name );
break;
}
@@ -187,6 +189,7 @@ static consoleCommand_t commands[ ] =
{
{ "+scores", CG_ScoresDown_f },
{ "-scores", CG_ScoresUp_f },
+ { "cgame_memory", BG_MemoryInfo },
{ "clientlist", CG_ClientList_f },
{ "destroyTestPS", CG_DestroyTestPS_f },
{ "destroyTestTS", CG_DestroyTestTS_f },