]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make work hud_panel_chat to toggle chat on/off, it fixes #2578
authorterencehill <piuntn@gmail.com>
Thu, 1 Jul 2021 19:38:09 +0000 (21:38 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 1 Jul 2021 19:38:09 +0000 (21:38 +0200)
qcsrc/client/hud/panel/chat.qc

index 972848260dcc94ab74d4c5fafa735517782d2625..7515d23fb82d60e263fbdf95cf4f56d4b4114f26 100644 (file)
@@ -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)