]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fade waypoints out opening the menu (like it was before)
authorterencehill <piuntn@gmail.com>
Sun, 12 Dec 2010 13:50:56 +0000 (14:50 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 12 Dec 2010 13:50:56 +0000 (14:50 +0100)
PS: Commit:250e9f56c0d1f61f6cf366d90671a79d45049c21
Why was waypointsprite alpha not set? Because waypointsprite_alpha initialization was removed merging my previous changes :)

qcsrc/client/waypointsprites.qc

index 2cd50789f14157b307380372329a1157a5e29c4d..1a35579839537d024d714813abd2e0b70cb1ac2d 100644 (file)
@@ -425,7 +425,7 @@ void WaypointSprite_Load()
        waypointsprite_distancefadealpha = autocvar_g_waypointsprite_distancefadealpha;
        waypointsprite_distancefadescale = autocvar_g_waypointsprite_distancefadescale;
        waypointsprite_distancefadedistance = waypointsprite_fadedistance * autocvar_g_waypointsprite_distancefadedistancemultiplier;
-       waypointsprite_alpha = autocvar_g_waypointsprite_alpha;
+       waypointsprite_alpha = autocvar_g_waypointsprite_alpha * (1 - autocvar__menu_alpha);
 
        if(!waypointsprite_initialized)
        {