From 8a0677cf7a26f6a4dffc42b747da7e5ff754f386 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Mon, 19 Oct 2009 21:00:09 +0000 Subject: * Add game_memory and cgame_memory commands to give a breakdown of memory * Make clientlist team colors more consistent with team colors elsewhere --- src/cgame/cg_consolecmds.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/cgame') 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 }, -- cgit