]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
uid2name_dialog: fix coloring in a string and do not allow to enter in hud configure...
authorterencehill <piuntn@gmail.com>
Mon, 13 Dec 2010 20:38:49 +0000 (21:38 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 13 Dec 2010 20:38:49 +0000 (21:38 +0100)
qcsrc/client/Main.qc
qcsrc/client/hud.qc

index 63cbfded71d18b509e765d292eaef023dc84516e..6df7dfa09f360f39a646ed0f87147c46df9840e6 100644 (file)
@@ -618,6 +618,7 @@ void GameCommand(string msg)
             vote_prev = 0;
             cvar_set("cl_allow_uid2name", "1");
             vote_change = -9999;
+                       uid2name_dialog = 0;
         }
         else
         {
@@ -632,6 +633,7 @@ void GameCommand(string msg)
             vote_prev = 0;
             cvar_set("cl_allow_uid2name", "0");
             vote_change = -9999;
+                       uid2name_dialog = 0;
         }
         else
         {
index b7556a18916048d63c09c6e693a2466188fee299..1d6af47934dc24f7637780306bcca8abec8f6d2f 100644 (file)
@@ -4021,12 +4021,18 @@ float vote_change; // "time" when vote_active changed
 
 void HUD_VoteWindow(void) 
 {
-    uid2name_dialog = 0;
        if(autocvar_cl_allow_uid2name == -1 && (gametype == GAME_CTS || gametype == GAME_RACE))
        {
                vote_active = 1;
-               vote_called_vote = strzone(strcat("^2Name ^7instead of \"^1Unregistered player\"", " ^7in stats"));
-        uid2name_dialog = 1;
+               if (autocvar__hud_configure)
+               {
+                       vote_yescount = 0;
+                       vote_nocount = 0;
+                       print("^1You have to answer before entering hud configure mode\n");
+                       cvar_set("_hud_configure", "0");
+               }
+               vote_called_vote = strzone("^2Name ^7instead of \"^1Unregistered player^7\" in stats");
+               uid2name_dialog = 1;
        }
 
        if(!autocvar_hud_panel_vote && !autocvar__hud_configure)