- Disable chat for single player, controlled by the chat_self CVAR.

This commit is contained in:
drfrag 2020-07-02 00:12:24 +02:00
parent a228edf64f
commit 0a210ed7f0

View file

@ -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 ();