]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
always show some icons on the mod icon panel when in config mode
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 16 May 2010 18:50:06 +0000 (21:50 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 16 May 2010 18:50:06 +0000 (21:50 +0300)
qcsrc/client/hud.qc

index 864e1017c21260e97ec5e0a1db209e14f238a2eb..e21071da5fe8e2e0a4fa1a7cea145eab54e69933 100644 (file)
@@ -2620,6 +2620,12 @@ void HUD_Mod_CTF(vector pos, vector mySize)
        redflag = (stat_items/IT_RED_FLAG_TAKEN) & 3;
        blueflag = (stat_items/IT_BLUE_FLAG_TAKEN) & 3;
 
+       if(hud_configure)
+       {
+               redflag = 1;
+               blueflag = 2;
+       }
+
        // when status CHANGES, set old status into prevstatus and current status into status
        if (redflag != redflag_prevframe)
        {
@@ -3016,7 +3022,7 @@ void HUD_ModIcons(void)
        // TODO... well make them work in a panel etc
        if(gametype == GAME_KEYHUNT)
                HUD_Mod_KH(pos, mySize);
-       else if(gametype == GAME_CTF)
+       else if(gametype == GAME_CTF || hud_configure)
                HUD_Mod_CTF(pos, mySize);
        else if(gametype == GAME_NEXBALL)
                HUD_Mod_NexBall(pos, mySize);