summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:17 +0200
commit96aae565da71018d0273a2ba5ade60c95d30141b (patch)
treee277e9cc85f411223897939fd5cc6c01bee04775 /src/cgame
parent0b88388204f4a1854ac7ae8486bb403023125827 (diff)
remove the abusable levelshot command and related hacks
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_consolecmds.c1
-rw-r--r--src/cgame/cg_draw.c4
-rw-r--r--src/cgame/cg_local.h1
-rw-r--r--src/cgame/cg_servercmds.c8
4 files changed, 0 insertions, 14 deletions
diff --git a/src/cgame/cg_consolecmds.c b/src/cgame/cg_consolecmds.c
index 68aab6c..30edd43 100644
--- a/src/cgame/cg_consolecmds.c
+++ b/src/cgame/cg_consolecmds.c
@@ -296,7 +296,6 @@ void CG_InitConsoleCommands( void )
trap_AddCommand( "noclip" );
trap_AddCommand( "team" );
trap_AddCommand( "follow" );
- trap_AddCommand( "levelshot" );
trap_AddCommand( "addbot" );
trap_AddCommand( "setviewpos" );
trap_AddCommand( "callvote" );
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index c5c9bf1..9efed5e 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -3254,10 +3254,6 @@ static void CG_Draw2D( void )
color[ 0 ] = color[ 1 ] = color[ 2 ] = color[ 3 ] = 1.0f;
- // if we are taking a levelshot for the menu, don't draw anything
- if( cg.levelShot )
- return;
-
if( cg_draw2D.integer == 0 )
return;
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h
index ea1694b..ed7d7cc 100644
--- a/src/cgame/cg_local.h
+++ b/src/cgame/cg_local.h
@@ -913,7 +913,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 7fb3e06..dd57574 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -913,14 +913,6 @@ static void CG_ServerCommand( void )
trap_R_RemapShader( CG_Argv( 1 ), CG_Argv( 2 ), CG_Argv( 3 ) );
}
- // clientLevelShot is sent before taking a special screenshot for
- // the menu system during development
- if( !strcmp( cmd, "clientLevelShot" ) )
- {
- cg.levelShot = qtrue;
- return;
- }
-
//the server has triggered a menu
if( !strcmp( cmd, "servermenu" ) )
{