From f6b2dc4ee1591e12714bc8ffe8464402060a87c6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 1 Jul 2021 21:38:09 +0200 Subject: [PATCH] Make work hud_panel_chat to toggle chat on/off, it fixes #2578 --- qcsrc/client/hud/panel/chat.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/chat.qc b/qcsrc/client/hud/panel/chat.qc index 972848260..7515d23fb 100644 --- a/qcsrc/client/hud/panel/chat.qc +++ b/qcsrc/client/hud/panel/chat.qc @@ -13,10 +13,12 @@ void HUD_Chat() { if(!autocvar__hud_configure) { - if (!autocvar_hud_panel_chat) + if (!autocvar_hud_panel_chat && !autocvar__con_chat_maximized) { - if (!autocvar_con_chatrect) + if (autocvar_con_chatrect) cvar_set("con_chatrect", "0"); + if (autocvar_con_chat) + cvar_set("con_chat", "-1"); return; } if(autocvar__con_chat_maximized) -- 2.39.2