]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix to invisible mapvote cursor and to invisible waypointsprites
authorFruitieX <rasse@rasse-lappy.localdomain>
Thu, 29 Jul 2010 09:00:36 +0000 (12:00 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Thu, 29 Jul 2010 09:00:36 +0000 (12:00 +0300)
qcsrc/client/hud.qh
qcsrc/client/mapvoting.qc
qcsrc/client/waypointsprites.qc

index 89f5edbdcc3228d8d128d4a1b69f87dbf80181fc..bdc533edbd7e818a56c7b473cf7c63980a124e1c 100644 (file)
@@ -33,7 +33,6 @@ float last_weapon;
 float weapontime;
 
 float teamnagger;
-float hud_fg_alpha;
 float hud_accuracy_hud;
 float hud_border_thickness;
 float hud_accuracy_border_thickness;
index c352cacaea05af16daa4feb922bcc4b8d81bc472..7c3bcecc50d22be197f696b15a60b05036dd466f 100644 (file)
@@ -249,7 +249,7 @@ void MapVote_Draw()
                MapVote_DrawAbstain(pos, isize, xmax - xmin, tmp, i);
        }
 
-       drawpic(mv_mousepos, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor.tga"), '32 32 0', '1 1 1', hud_fg_alpha, DRAWFLAG_NORMAL);
+       drawpic(mv_mousepos, strcat("gfx/menu/", cvar_string("menu_skin"), "/cursor.tga"), '32 32 0', '1 1 1', autocvar_hud_panel_fg_alpha, DRAWFLAG_NORMAL);
 }
 
 void Cmd_MapVote_MapDownload(float argc)
index db0fdb83fd81a3dd46293211d9eca60df94157ad..d7b9ee9d01960829aa3992dcebec4eb6bb7e84c8 100644 (file)
@@ -166,7 +166,7 @@ void Draw_WaypointSprite()
        dist = vlen(self.origin - view_origin);
        
        float a;
-       a = self.alpha * hud_fg_alpha;
+       a = self.alpha * autocvar_hud_panel_fg_alpha;
 
        if(self.maxdistance > waypointsprite_normdistance)
                a *= pow(bound(0, (self.maxdistance - dist) / (self.maxdistance - waypointsprite_normdistance), 1), waypointsprite_distancealphaexponent);