1
0
Fork 0
forked from fte/fteqw

fix easyrecord command

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2302 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-05-28 23:31:30 +00:00
parent 00438b27fa
commit 992102c76c

View file

@ -1720,12 +1720,18 @@ void SV_MVDEasyRecord_f (void)
Check_DemoDir();
c = Cmd_Argc();
if (c > 2)
if (c < 2)
{
Con_Printf ("easyrecord [demoname]\n");
return;
}
if (sv.state < ss_active)
{
Con_Printf("Server isn't running or is still loading\n");
return;
}
dir = Sys_listdir(va("%s/%s", com_gamedir,sv_demoDir.string), ".*", SORT_NO);
if (sv_demoMaxDirSize.value && dir.size > sv_demoMaxDirSize.value*1024)
{