mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
trying to make bigfoot happy.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3110 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d3bcc14e5a
commit
51ec8d2912
1 changed files with 12 additions and 1 deletions
|
@ -362,6 +362,17 @@ void Con_ExecuteLine(console_t *con, char *line)
|
|||
{
|
||||
qboolean waschat = false;
|
||||
|
||||
if (cls.state >= ca_connected && cl_chatmode.value == 2)
|
||||
{
|
||||
waschat = true;
|
||||
if (keydown[K_CTRL])
|
||||
Cbuf_AddText ("say_team ", RESTRICT_LOCAL);
|
||||
else if (keydown[K_SHIFT])
|
||||
Cbuf_AddText ("say ", RESTRICT_LOCAL);
|
||||
else
|
||||
waschat = false;
|
||||
}
|
||||
|
||||
con_commandmatch=1;
|
||||
if (line[0] == '\\' || line[0] == '/')
|
||||
Cbuf_AddText (line+1, RESTRICT_LOCAL); // skip the >
|
||||
|
@ -373,7 +384,7 @@ void Con_ExecuteLine(console_t *con, char *line)
|
|||
#endif
|
||||
else if (*line)
|
||||
{ // convert to a chat message
|
||||
if (cl_chatmode.value == 1 || ((cls.state >= ca_connected && cl_chatmode.value == 2) && (strncmp(line, "say ", 4))))
|
||||
if (!waschat && (cl_chatmode.value == 1 || ((cls.state >= ca_connected && cl_chatmode.value == 2) && (strncmp(line, "say ", 4)))))
|
||||
{
|
||||
if (keydown[K_CTRL])
|
||||
Cbuf_AddText ("say_team ", RESTRICT_LOCAL);
|
||||
|
|
Loading…
Reference in a new issue