mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
Add cl_startdemos cvar
https://github.com/andrei-drexler/ironwail/issues/21
This commit is contained in:
parent
0b30541ab9
commit
f943e742dc
4 changed files with 8 additions and 2 deletions
|
@ -48,6 +48,8 @@ cvar_t m_side = {"m_side","0.8", CVAR_ARCHIVE};
|
|||
cvar_t cl_maxpitch = {"cl_maxpitch", "90", CVAR_ARCHIVE}; //johnfitz -- variable pitch clamping
|
||||
cvar_t cl_minpitch = {"cl_minpitch", "-90", CVAR_ARCHIVE}; //johnfitz -- variable pitch clamping
|
||||
|
||||
cvar_t cl_startdemos = {"cl_startdemos", "1", CVAR_ARCHIVE};
|
||||
|
||||
client_static_t cls;
|
||||
client_state_t cl;
|
||||
// FIXME: put these on hunk?
|
||||
|
@ -824,6 +826,8 @@ void CL_Init (void)
|
|||
Cvar_RegisterVariable (&cl_maxpitch); //johnfitz -- variable pitch clamping
|
||||
Cvar_RegisterVariable (&cl_minpitch); //johnfitz -- variable pitch clamping
|
||||
|
||||
Cvar_RegisterVariable (&cl_startdemos);
|
||||
|
||||
Cmd_AddCommand ("entities", CL_PrintEntities_f);
|
||||
Cmd_AddCommand ("disconnect", CL_Disconnect_f);
|
||||
Cmd_AddCommand ("record", CL_Record_f);
|
||||
|
|
|
@ -264,6 +264,8 @@ extern cvar_t m_yaw;
|
|||
extern cvar_t m_forward;
|
||||
extern cvar_t m_side;
|
||||
|
||||
extern cvar_t cl_startdemos;
|
||||
|
||||
|
||||
#define MAX_TEMP_ENTITIES 256 //johnfitz -- was 64
|
||||
#define MAX_STATIC_ENTITIES 4096 //ericw -- was 512 //johnfitz -- was 128
|
||||
|
|
|
@ -2222,7 +2222,7 @@ static void Host_Startdemos_f (void)
|
|||
if (!sv.active && cls.demonum != -1 && !cls.demoplayback)
|
||||
{
|
||||
cls.demonum = 0;
|
||||
if (!fitzmode)
|
||||
if (!fitzmode && !cl_startdemos.value)
|
||||
{ /* QuakeSpasm customization: */
|
||||
/* go straight to menu, no CL_NextDemo */
|
||||
cls.demonum = -1;
|
||||
|
|
|
@ -281,7 +281,7 @@ void M_Main_Key (int key)
|
|||
key_dest = key_game;
|
||||
m_state = m_none;
|
||||
cls.demonum = m_save_demonum;
|
||||
if (!fitzmode) /* QuakeSpasm customization: */
|
||||
if (!fitzmode && !cl_startdemos.value) /* QuakeSpasm customization: */
|
||||
break;
|
||||
if (cls.demonum != -1 && !cls.demoplayback && cls.state != ca_connected)
|
||||
CL_NextDemo ();
|
||||
|
|
Loading…
Reference in a new issue