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/client/cl_cgame.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/client') diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c index 9ce67455..da15e4e6 100644 --- a/src/client/cl_cgame.c +++ b/src/client/cl_cgame.c @@ -336,25 +336,6 @@ rescan: return qtrue; } - // the clientLevelShot command is used during development - // to generate 128*128 screenshots from the intermission - // point of levels for the menu system to use - // we pass it along to the cgame to make apropriate adjustments, - // but we also clear the console and notify lines here - if ( !strcmp( cmd, "clientLevelShot" ) ) { - // don't do it if we aren't running the server locally, - // otherwise malicious remote servers could overwrite - // the existing thumbnails - if ( !com_sv_running->integer ) { - return qfalse; - } - // close the console - Con_Close(); - // take a special screenshot next frame - Cbuf_AddText( "wait ; wait ; wait ; wait ; screenshot levelshot\n" ); - return qtrue; - } - // we may want to put a "connect to other server" command here // cgame can now act on the command -- cgit