Fixes to echo, correct use of cmd_source and src_command, and change nq to

use cmd_legacybuffer for stufftext.
This commit is contained in:
Brian Koropoff 2002-03-04 01:11:05 +00:00
parent 8d124f9c2b
commit 7241d69036
2 changed files with 5 additions and 10 deletions

View file

@ -122,7 +122,6 @@ Cbuf_AddTextTo (dstring_t *buffer, const char *text)
void void
Cbuf_AddText (const char *text) Cbuf_AddText (const char *text)
{ {
Cbuf_AddTextTo (cmd_activebuffer, text); Cbuf_AddTextTo (cmd_activebuffer, text);
} }
@ -193,7 +192,7 @@ Cbuf_ExecuteBuffer (dstring_t *buffer)
while (strlen(buffer->str)) { while (strlen(buffer->str)) {
extract_line (buffer, buf); extract_line (buffer, buf);
Cmd_ExecuteString(buf->str, cmd_source); Cmd_ExecuteString(buf->str, src_command);
if (cmd_wait) { if (cmd_wait) {
cmd_wait = false; cmd_wait = false;
break; break;
@ -232,9 +231,9 @@ Cbuf_Execute_Sets (void)
while (strlen(cmd_buffer->str)) { while (strlen(cmd_buffer->str)) {
extract_line (cmd_buffer, buf); extract_line (cmd_buffer, buf);
if (!strncmp (buf->str, "set", 3) && isspace ((int) buf->str[3])) { if (!strncmp (buf->str, "set", 3) && isspace ((int) buf->str[3])) {
Cmd_ExecuteString (buf->str, cmd_source); Cmd_ExecuteString (buf->str, src_command);
} else if (!strncmp (buf->str, "setrom", 6) && isspace ((int) buf->str[6])) { } else if (!strncmp (buf->str, "setrom", 6) && isspace ((int) buf->str[6])) {
Cmd_ExecuteString (buf->str, cmd_source); Cmd_ExecuteString (buf->str, src_command);
} }
dstring_clearstr(buf); dstring_clearstr(buf);
} }
@ -353,11 +352,7 @@ Cmd_Exec_f (void)
void void
Cmd_Echo_f (void) Cmd_Echo_f (void)
{ {
int i; Sys_Printf ("%s\n", Cmd_Args (1));
for (i = 1; i < Cmd_Argc (); i++)
Sys_Printf ("%s ", Cmd_Argv (i));
Sys_Printf ("\n");
} }
/* /*

View file

@ -731,7 +731,7 @@ CL_ParseServerMessage (void)
break; break;
case svc_stufftext: case svc_stufftext:
Cbuf_AddText (MSG_ReadString (net_message)); Cbuf_AddTextTo (cmd_legacybuffer, MSG_ReadString (net_message));
break; break;
case svc_damage: case svc_damage: