]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reopen the uid2name menu dialog if it gets closed in other ways: 1) menu restart... 332/head
authorterencehill <piuntn@gmail.com>
Sun, 3 Jul 2016 17:08:12 +0000 (19:08 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 3 Jul 2016 17:08:12 +0000 (19:08 +0200)
qcsrc/client/hud/panel/vote.qc

index f85d304c5b815757fe4e0168e656b32196b3ef68..d7d4d252bec67441f178311e5f593bde24220536 100644 (file)
@@ -9,10 +9,12 @@ void HUD_Vote()
        {
                // this dialog gets overriden by the uid2name menu dialog, if it exists
                // TODO remove this client side uid2name dialog in the next release
-               if (!uid2name_dialog)
-                       localcmd("menu_cmd directmenu Uid2Name\n");
                if(autocvar__menu_alpha)
                        hud_fade_alpha = 0;
+               else
+                       uid2name_dialog = 0;
+               if (!uid2name_dialog)
+                       localcmd("menu_cmd directmenu Uid2Name\n");
 
                vote_active = 1;
                if (autocvar__hud_configure)