From: FruitieX Date: Thu, 29 Jul 2010 09:00:36 +0000 (+0300) Subject: fix to invisible mapvote cursor and to invisible waypointsprites X-Git-Tag: xonotic-v0.1.0preview~383^2~5^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6f691587027f0652fea7b95c074992b0272d599f;p=xonotic%2Fxonotic-data.pk3dir.git fix to invisible mapvote cursor and to invisible waypointsprites --- diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index 89f5edbdc..bdc533edb 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -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; diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index c352cacae..7c3bcecc5 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -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) diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index db0fdb83f..d7b9ee9d0 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -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);