From b769580e4d658b9d325d4647ddf6e254e78b25f6 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 10 Jun 2006 12:19:57 +0000 Subject: [PATCH] disabled the broken cl_autodemo feature until Sajt fixes it git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6455 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 4 ++++ host_cmd.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cl_main.c b/cl_main.c index 215cea56..46cd234e 100644 --- a/cl_main.c +++ b/cl_main.c @@ -50,8 +50,10 @@ cvar_t m_side = {CVAR_SAVE, "m_side","0.8","mouse side speed multiplier"}; cvar_t freelook = {CVAR_SAVE, "freelook", "1","mouse controls pitch instead of forward/back"}; +#ifdef AUTODEMO_BROKEN cvar_t cl_autodemo = {0, "cl_autodemo", "0", "records every game played, using the date/time and map name to name the demo file" }; cvar_t cl_autodemo_nameformat = {0, "cl_autodemo_nameformat", "%Y-%m-%d_%H-%M", "The format of the cl_autodemo filename, followed by the map name" }; +#endif cvar_t r_draweffects = {0, "r_draweffects", "1","renders temporary sprite effects"}; @@ -1753,8 +1755,10 @@ void CL_Init (void) Cmd_AddCommand ("playdemo", CL_PlayDemo_f, "watch a demo file"); Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "play back a demo as fast as possible and save statistics to benchmark.log"); +#ifdef AUTODEMO_BROKEN Cvar_RegisterVariable (&cl_autodemo); Cvar_RegisterVariable (&cl_autodemo_nameformat); +#endif Cmd_AddCommand ("fog", CL_Fog_f, "set global fog parameters (density red green blue)"); diff --git a/host_cmd.c b/host_cmd.c index 51528b19..24acdd6a 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -285,6 +285,7 @@ void Host_Map_f (void) if (sv.active && cls.state == ca_disconnected) CL_EstablishConnection("local:1"); +#ifdef AUTODEMO_BROKEN // if cl_autodemo is set, automatically start recording a demo if one isn't being recorded already if (cl_autodemo.integer && !cls.demorecording) { @@ -305,6 +306,7 @@ void Host_Map_f (void) cls.demorecording = true; } +#endif } /* -- 2.39.2