if (!sv.active && cls.demonum != -1 && !cls.demoplayback)
{
+ if (!cl_startdemos.integer)
+ {
+ cls.demonum = -1;
+#ifdef CONFIG_MENU
+ // make the menu appear after a gamedir change
+ if(MR_ToggleMenu)
+ MR_ToggleMenu(1);
+#endif
+ return;
+ }
cls.demonum = 0;
CL_NextDemo ();
}
Cvar_RegisterVariable (&cl_autodemo);
Cvar_RegisterVariable (&cl_autodemo_nameformat);
Cvar_RegisterVariable (&cl_autodemo_delete);
+ Cvar_RegisterVariable (&cl_startdemos);
}
cvar_t cl_autodemo = {CF_CLIENT | CF_ARCHIVE, "cl_autodemo", "0", "records every game played, using the date/time and map name to name the demo file" };
cvar_t cl_autodemo_nameformat = {CF_CLIENT | CF_ARCHIVE, "cl_autodemo_nameformat", "autodemos/%Y-%m-%d_%H-%M", "The format of the cl_autodemo filename, followed by the map name (the date is encoded using strftime escapes)" };
cvar_t cl_autodemo_delete = {CF_CLIENT, "cl_autodemo_delete", "0", "Delete demos after recording. This is a bitmask, bit 1 gives the default, bit 0 the value for the current demo. Thus, the values are: 0 = disabled; 1 = delete current demo only; 2 = delete all demos except the current demo; 3 = delete all demos from now on" };
+cvar_t cl_startdemos = {CF_CLIENT | CF_ARCHIVE, "cl_startdemos", "1", "1 enables the `startdemos` loop used in Quake and some mods, 0 goes straight to the menu"};
cvar_t r_draweffects = {CF_CLIENT, "r_draweffects", "1","renders temporary sprite effects"};
extern cvar_t cl_autodemo;
extern cvar_t cl_autodemo_nameformat;
extern cvar_t cl_autodemo_delete;
+extern cvar_t cl_startdemos;
extern cvar_t r_draweffects;
key_dest = key_game;
m_state = m_none;
//cls.demonum = m_save_demonum;
+ //if(!cl_startdemos.integer)
+ // break;
//if (cls.demonum != -1 && !cls.demoplayback && cls.state != ca_connected)
// CL_NextDemo ();
break;
#define CVAR_HASHSIZE 65536 ///< number of hash buckets for accelerating cvar name lookups
#define M_MAX_EDICTS 32768 ///< max objects in menu vm
#define MAX_DEMOS 8 ///< max demos provided to demos command
-#define MAX_DEMONAME 16 ///< max demo name length for demos command
+#define MAX_DEMONAME 32 ///< max demo name length for demos command
#define MAX_SAVEGAMES 12 ///< max savegames listed in savegame menu
#define SAVEGAME_COMMENT_LENGTH 39 ///< max comment length of savegame in menu
#define MAX_CLIENTNETWORKEYES 16 ///< max number of locations that can be added to pvs when culling network entities (must be at least 2 for prediction)