no param edit fix, but edit is still horribly broken

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1231 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-08-14 03:55:08 +00:00
parent 858239691a
commit c6896ca186

View file

@ -1028,6 +1028,12 @@ int QCLibEditor(progfuncs_t *prfncs, char *filename, int line, int nump, char **
void Editor_f(void)
{
if (Cmd_Argc() != 2)
{
Con_Printf("edit <filename>\n");
return;
}
if (editoractive)
EditorSaveFile(OpenEditorFile);
EditorOpenFile(Cmd_Argv(1));