mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
hide SV_Stop_f
This commit is contained in:
parent
a3934f8841
commit
17afd25631
4 changed files with 6 additions and 7 deletions
|
@ -123,7 +123,6 @@ extern struct cvar_s *serverdemo;
|
|||
|
||||
void DemoWrite_Begin (byte type, int to, int size);
|
||||
void SV_DemoWritePackets (int num);
|
||||
void SV_Stop_f (void);
|
||||
void SV_Stop (int reason);
|
||||
void DemoSetMsgBuf (demobuf_t *prev, demobuf_t *cur);
|
||||
void Demo_Init (void);
|
||||
|
|
|
@ -422,7 +422,7 @@ SV_Map_f (void)
|
|||
free (expanded);
|
||||
|
||||
if (sv.demorecording)
|
||||
SV_Stop_f ();
|
||||
SV_Stop (0);
|
||||
|
||||
SV_BroadcastCommand ("changing\n");
|
||||
SV_SendMessagesToAll ();
|
||||
|
|
|
@ -334,7 +334,7 @@ SV_WriteDemoMessage (sizebuf_t *msg, int type, int to, float time)
|
|||
demo.size += DWRITE (&c, sizeof (c), demo.dest);
|
||||
break;
|
||||
default:
|
||||
SV_Stop_f ();
|
||||
SV_Stop (0);
|
||||
Con_Printf ("bad demo message type:%d", type);
|
||||
return;
|
||||
}
|
||||
|
@ -655,7 +655,7 @@ SV_Stop (int reason)
|
|||
Cvar_Set (serverdemo, "");
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
SV_Stop_f (void)
|
||||
{
|
||||
SV_Stop (0);
|
||||
|
@ -1088,7 +1088,7 @@ SV_Record_f (void)
|
|||
}
|
||||
|
||||
if (sv.demorecording)
|
||||
SV_Stop_f ();
|
||||
SV_Stop (0);
|
||||
|
||||
dsprintf (name, "%s/%s/%s%s%s", qfs_gamedir->dir.def, sv_demoDir->string,
|
||||
sv_demoPrefix->string, SV_CleanName (Cmd_Argv (1)),
|
||||
|
@ -1184,7 +1184,7 @@ SV_EasyRecord_f (void)
|
|||
}
|
||||
|
||||
if (sv.demorecording)
|
||||
SV_Stop_f ();
|
||||
SV_Stop (0);
|
||||
|
||||
if (Cmd_Argc () == 2)
|
||||
dsprintf (name, "%s", Cmd_Argv (1));
|
||||
|
|
|
@ -249,7 +249,7 @@ SV_Shutdown (void)
|
|||
sv_fraglogfile = NULL;
|
||||
}
|
||||
if (sv.demorecording)
|
||||
SV_Stop_f ();
|
||||
SV_Stop (0);
|
||||
|
||||
NET_Shutdown ();
|
||||
Con_Shutdown ();
|
||||
|
|
Loading…
Reference in a new issue