From 992102c76c567d0b1c6883bc5a081e358e945dc5 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sun, 28 May 2006 23:31:30 +0000 Subject: [PATCH] fix easyrecord command git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2302 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_mvd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/server/sv_mvd.c b/engine/server/sv_mvd.c index 06fd8e99f..d8e022a84 100644 --- a/engine/server/sv_mvd.c +++ b/engine/server/sv_mvd.c @@ -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) {