Expanded the .qtv file 'format' for later.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2456 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-01-06 09:38:08 +00:00
parent edbe5bc600
commit 2a10d9860e

View file

@ -1603,6 +1603,36 @@ void CL_QTVPlay_f (void)
Cbuf_AddText(va("qtvplay \"%s\"\n", s), Cmd_ExecLevel); Cbuf_AddText(va("qtvplay \"%s\"\n", s), Cmd_ExecLevel);
break; break;
} }
if (!strncmp(buffer, "Join=", 7) || !strncmp(buffer, "Join:", 7))
{
for (s = buffer + strlen(buffer)-1; s >= buffer; s--)
{
if (*s == '\r' || *s == '\n')
*s = 0;
else
break;
}
s = buffer+8;
while(*s && *s <= ' ')
s++;
Cbuf_AddText(va("join \"%s\"\n", s), Cmd_ExecLevel);
break;
}
if (!strncmp(buffer, "Observe=", 7) || !strncmp(buffer, "Observe:", 7))
{
for (s = buffer + strlen(buffer)-1; s >= buffer; s--)
{
if (*s == '\r' || *s == '\n')
*s = 0;
else
break;
}
s = buffer+8;
while(*s && *s <= ' ')
s++;
Cbuf_AddText(va("observe \"%s\"\n", s), Cmd_ExecLevel);
break;
}
} }
fclose(f); fclose(f);
return; return;