fixed parameter error with playmvd but the command still seems to be broken
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2084 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7140498c43
commit
768b92f08b
1 changed files with 3 additions and 2 deletions
|
@ -214,7 +214,7 @@ extern float olddemotime;
|
||||||
void SV_LoadClientDemo_f (void)
|
void SV_LoadClientDemo_f (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char *demoname;
|
char demoname[MAX_OSPATH];
|
||||||
client_t *ohc;
|
client_t *ohc;
|
||||||
if (Cmd_Argc() < 2)
|
if (Cmd_Argc() < 2)
|
||||||
{
|
{
|
||||||
|
@ -231,6 +231,8 @@ void SV_LoadClientDemo_f (void)
|
||||||
SV_ReadMVD();
|
SV_ReadMVD();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Q_strncpyz(demoname, Cmd_Argv(1), sizeof(demoname));
|
||||||
|
|
||||||
if (!sv.state)
|
if (!sv.state)
|
||||||
Cmd_ExecuteString("map start\n", Cmd_ExecLevel); //go for the start map
|
Cmd_ExecuteString("map start\n", Cmd_ExecLevel); //go for the start map
|
||||||
if (!sv.state)
|
if (!sv.state)
|
||||||
|
@ -239,7 +241,6 @@ void SV_LoadClientDemo_f (void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
demoname = Cmd_Argv(1);
|
|
||||||
svd.demofile = FS_OpenVFS(demoname, "rb", FS_GAME);
|
svd.demofile = FS_OpenVFS(demoname, "rb", FS_GAME);
|
||||||
if (!svd.demofile) //try with a different path
|
if (!svd.demofile) //try with a different path
|
||||||
svd.demofile = FS_OpenVFS(va("demos/%s", demoname), "rb", FS_GAME);
|
svd.demofile = FS_OpenVFS(va("demos/%s", demoname), "rb", FS_GAME);
|
||||||
|
|
Loading…
Reference in a new issue