mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 09:52:27 +00:00
- Disable chat for single player, controlled by the chat_self CVAR.
This commit is contained in:
parent
a228edf64f
commit
0a210ed7f0
1 changed files with 4 additions and 2 deletions
|
@ -58,6 +58,8 @@ EXTERN_CVAR (Bool, sb_cooperative_enable)
|
|||
EXTERN_CVAR (Bool, sb_deathmatch_enable)
|
||||
EXTERN_CVAR (Bool, sb_teamdeathmatch_enable)
|
||||
|
||||
CVAR (Bool, chat_self, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
|
||||
int active_con_scaletext();
|
||||
|
||||
// Public data
|
||||
|
@ -507,7 +509,7 @@ static bool DoSubstitution (FString &out, const char *in)
|
|||
|
||||
CCMD (messagemode)
|
||||
{
|
||||
if (menuactive == MENU_Off)
|
||||
if (menuactive == MENU_Off && (multiplayer || chat_self))
|
||||
{
|
||||
chatmodeon = 1;
|
||||
C_HideConsole ();
|
||||
|
@ -529,7 +531,7 @@ CCMD (say)
|
|||
|
||||
CCMD (messagemode2)
|
||||
{
|
||||
if (menuactive == MENU_Off)
|
||||
if (menuactive == MENU_Off && (multiplayer || chat_self))
|
||||
{
|
||||
chatmodeon = 2;
|
||||
C_HideConsole ();
|
||||
|
|
Loading…
Reference in a new issue