mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 12:22:42 +00:00
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:
parent
cb0e9f7351
commit
969d286ca0
1 changed files with 6 additions and 1 deletions
|
@ -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 >
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue