1
0
Fork 0
forked from fte/fteqw

ctrl+enter when typing text will use say_team instead of say

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@802 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-17 17:41:54 +00:00
parent cb0e9f7351
commit 969d286ca0

View file

@ -389,7 +389,12 @@ void Key_Console (int key)
else
{ // convert to a chat message
if (cls.state >= ca_connected && (strncmp(key_lines[edit_line]+1, "say ", 4)))
Cbuf_AddText ("say ", RESTRICT_LOCAL);
{
if (keydown[K_CTRL])
Cbuf_AddText ("say_team ", RESTRICT_LOCAL);
else
Cbuf_AddText ("say ", RESTRICT_LOCAL);
}
Cbuf_AddText (key_lines[edit_line]+1, RESTRICT_LOCAL); // skip the >
}