mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 16:51:08 +00:00
fix restarting timedemo from trashing itself
This commit is contained in:
parent
2b560ad37d
commit
9ca6728fa4
1 changed files with 8 additions and 3 deletions
|
@ -735,9 +735,6 @@ CL_StartDemo (void)
|
||||||
{
|
{
|
||||||
char name[MAX_OSPATH];
|
char name[MAX_OSPATH];
|
||||||
|
|
||||||
// disconnect from server
|
|
||||||
CL_Disconnect ();
|
|
||||||
|
|
||||||
// open the demo file
|
// open the demo file
|
||||||
strncpy (name, demoname, sizeof (name));
|
strncpy (name, demoname, sizeof (name));
|
||||||
COM_DefaultExtension (name, ".qwd");
|
COM_DefaultExtension (name, ".qwd");
|
||||||
|
@ -769,6 +766,10 @@ CL_PlayDemo_f (void)
|
||||||
Con_Printf ("play <demoname> : plays a demo\n");
|
Con_Printf ("play <demoname> : plays a demo\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
timedemo_runs = timedemo_count = 1; // make sure looped timedemos stop
|
||||||
|
// disconnect from server
|
||||||
|
CL_Disconnect ();
|
||||||
|
|
||||||
strncpy (demoname, Cmd_Argv (1), sizeof (demoname));
|
strncpy (demoname, Cmd_Argv (1), sizeof (demoname));
|
||||||
CL_StartDemo ();
|
CL_StartDemo ();
|
||||||
}
|
}
|
||||||
|
@ -864,6 +865,10 @@ CL_TimeDemo_f (void)
|
||||||
Con_Printf ("timedemo <demoname> [count]: gets demo speeds\n");
|
Con_Printf ("timedemo <demoname> [count]: gets demo speeds\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
timedemo_runs = timedemo_count = 1; // make sure looped timedemos stop
|
||||||
|
// disconnect from server
|
||||||
|
CL_Disconnect ();
|
||||||
|
|
||||||
if (Cmd_Argc () == 3) {
|
if (Cmd_Argc () == 3) {
|
||||||
timedemo_count = atoi (Cmd_Argv (2));
|
timedemo_count = atoi (Cmd_Argv (2));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue