bah, thought I tested that. why dstrings were being used anyway I don't know...

This commit is contained in:
Bill Currie 2002-08-28 21:03:24 +00:00
parent 246ab0009c
commit be24d628af

View file

@ -317,12 +317,10 @@ C_Say (const char *line)
{
if (!*line)
return;
dstring_t *dstr = dstring_newstr ();
dstring_appendstr (dstr, line);
Cbuf_AddText (con_data.cbuf, "say \"");
Cbuf_AddText (con_data.cbuf, dstr->str);
Cbuf_AddText (con_data.cbuf, line);
Cbuf_AddText (con_data.cbuf, "\"\n");
dstring_delete (dstr);
key_dest = key_game;
game_target = IMT_0;
}
@ -332,12 +330,10 @@ C_SayTeam (const char *line)
{
if (!*line)
return;
dstring_t *dstr = dstring_newstr ();
dstring_appendstr (dstr, line);
Cbuf_AddText (con_data.cbuf, "say_team \"");
Cbuf_AddText (con_data.cbuf, dstr->str);
Cbuf_AddText (con_data.cbuf, line);
Cbuf_AddText (con_data.cbuf, "\"\n");
dstring_delete (dstr);
key_dest = key_game;
game_target = IMT_0;
}