From 5e0f74ed9df36ba5d58aeb13cce527047e572b90 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 12 Jul 2014 23:48:06 +0200 Subject: remove the abusable levelshot command and related hacks --- src/cgame/cg_consolecmds.c | 1 - src/cgame/cg_draw.c | 4 ---- src/cgame/cg_local.h | 1 - src/cgame/cg_servercmds.c | 11 ----------- 4 files changed, 17 deletions(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_consolecmds.c b/src/cgame/cg_consolecmds.c index adae40a8..7876bc32 100644 --- a/src/cgame/cg_consolecmds.c +++ b/src/cgame/cg_consolecmds.c @@ -259,7 +259,6 @@ void CG_InitConsoleCommands( void ) trap_AddCommand( "noclip" ); trap_AddCommand( "team" ); trap_AddCommand( "follow" ); - trap_AddCommand( "levelshot" ); trap_AddCommand( "setviewpos" ); trap_AddCommand( "callvote" ); trap_AddCommand( "vote" ); diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index ee604e76..f59c11aa 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -3407,10 +3407,6 @@ static void CG_Draw2D( void ) { menuDef_t *menu = NULL; - // if we are taking a levelshot for the menu, don't draw anything - if( cg.levelShot ) - return; - // fading to black if stamina runs out // (only 2D that can't be disabled) CG_DrawLighting( ); diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index cf1da82d..53841e45 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -920,7 +920,6 @@ typedef struct int clientNum; qboolean demoPlayback; - qboolean levelShot; // taking a level menu screenshot int deferredPlayerLoading; qboolean loading; // don't defer players at initial startup qboolean intermissionStarted; // don't play voice rewards, because game will end shortly diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index ae4a2619..ab071d42 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -1176,16 +1176,6 @@ static void CG_Chat_f( void ) CG_Say( atoi( id ), atoi( mode ), CG_Argv( 3 ) ); } -/* -================= -CG_ClientLevelShot_f -================= -*/ -static void CG_ClientLevelShot_f( void ) -{ - cg.levelShot = qtrue; -} - /* ================= CG_ServerMenu_f @@ -1270,7 +1260,6 @@ void CG_UnregisterCommands( void ) static consoleCommand_t svcommands[ ] = { { "chat", CG_Chat_f }, - { "clientLevelShot", CG_ClientLevelShot_f }, { "cmds", CG_GameCmds_f }, { "cp", CG_CenterPrint_f }, { "cs", CG_ConfigStringModified }, -- cgit