Fixed a stupid bug in Cmd_Exec_f that was causing map commands inside

executed files to crash the server.
This commit is contained in:
Brian Koropoff 2002-03-23 23:13:15 +00:00
parent 73f32465c5
commit 7c4cecd700

View file

@ -577,9 +577,9 @@ Cmd_Exec_f (void)
&& (cmd_warncmd->int_val || (developer && developer->int_val)))
Sys_Printf ("execing %s\n", Cmd_Argv (1));
sub = Cmd_NewBuffer (true);
Cbuf_InsertTextTo (sub, f);
Cmd_ExecuteSubroutine (sub); // Execute file in it's own buffer
Cbuf_AddTextTo (sub, f);
Hunk_FreeToLowMark (mark);
Cmd_ExecuteSubroutine (sub); // Execute file in it's own buffer
}
/*