From e4491a79570f528c5aae3a073c3a2d47289c9ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 28 Aug 2016 12:22:45 +0200 Subject: [PATCH] Remove hard-coded LaserZap transparency. --- OpenRA.Mods.Common/Projectiles/LaserZap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Projectiles/LaserZap.cs b/OpenRA.Mods.Common/Projectiles/LaserZap.cs index 2819396213..b9ccd3ca79 100644 --- a/OpenRA.Mods.Common/Projectiles/LaserZap.cs +++ b/OpenRA.Mods.Common/Projectiles/LaserZap.cs @@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.Projectiles if (ticks < info.BeamDuration) { - var rc = Color.FromArgb((info.BeamDuration - ticks) * 255 / info.BeamDuration, color); + var rc = Color.FromArgb((info.BeamDuration - ticks) * color.A / info.BeamDuration, color); yield return new BeamRenderable(args.Source, info.ZOffset, target - args.Source, info.Shape, info.Width, rc); }