1
0
Fork 0
forked from fte/fteqw

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:
TimeServ 2006-03-11 06:22:54 +00:00
parent 7140498c43
commit 768b92f08b

View file

@ -214,7 +214,7 @@ extern float olddemotime;
void SV_LoadClientDemo_f (void)
{
int i;
char *demoname;
char demoname[MAX_OSPATH];
client_t *ohc;
if (Cmd_Argc() < 2)
{
@ -231,6 +231,8 @@ void SV_LoadClientDemo_f (void)
SV_ReadMVD();
}
Q_strncpyz(demoname, Cmd_Argv(1), sizeof(demoname));
if (!sv.state)
Cmd_ExecuteString("map start\n", Cmd_ExecLevel); //go for the start map
if (!sv.state)
@ -239,7 +241,6 @@ void SV_LoadClientDemo_f (void)
return;
}
demoname = Cmd_Argv(1);
svd.demofile = FS_OpenVFS(demoname, "rb", FS_GAME);
if (!svd.demofile) //try with a different path
svd.demofile = FS_OpenVFS(va("demos/%s", demoname), "rb", FS_GAME);