]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't override alpha to 1 if warpzones exist, fixes solid black items
authorMario <mario@smbclan.net>
Sat, 2 Jan 2016 02:58:40 +0000 (12:58 +1000)
committerMario <mario@smbclan.net>
Sat, 2 Jan 2016 02:58:54 +0000 (12:58 +1000)
qcsrc/common/t_items.qc

index e9e8c1be71b5943cc40101e351ec772bdf8e08f6..8cbbbb339d082e11ceb604ad2c08fc5c1603e1e4 100644 (file)
@@ -110,6 +110,8 @@ void ItemDrawSimple(entity this)
         if(this.move_flags & FL_ONGROUND)
             this.gravity = 0;
     }
+
+    Item_SetAlpha(this);
 }
 
 void Item_PreDraw()
@@ -117,7 +119,7 @@ void Item_PreDraw()
        if(warpzone_warpzones_exist)
        {
                // just incase warpzones were initialized last, reset these
-               self.alpha = 1;
+               //self.alpha = 1; // alpha is already set by the draw function
                self.drawmask = MASK_NORMAL;
                return;
        }