From d00246a55e1f819b2beafc5c33194a470d18d31f Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 3 Jul 2016 19:08:12 +0200 Subject: [PATCH] Reopen the uid2name menu dialog if it gets closed in other ways: 1) menu restart 2) opening the team selection dialog with F5 and then closing it --- qcsrc/client/hud/panel/vote.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/vote.qc b/qcsrc/client/hud/panel/vote.qc index f85d304c5..d7d4d252b 100644 --- a/qcsrc/client/hud/panel/vote.qc +++ b/qcsrc/client/hud/panel/vote.qc @@ -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) -- 2.39.2