From: terencehill Date: Thu, 1 Jul 2021 19:38:09 +0000 (+0200) Subject: Make work hud_panel_chat to toggle chat on/off, it fixes #2578 X-Git-Tag: xonotic-v0.8.5~383 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f6b2dc4ee1591e12714bc8ffe8464402060a87c6;p=xonotic%2Fxonotic-data.pk3dir.git Make work hud_panel_chat to toggle chat on/off, it fixes #2578 --- 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)