Remove hard-coded LaserZap transparency.

This commit is contained in:
Matthias Mailänder
2016-08-28 12:22:45 +02:00
parent 84d58f78d2
commit e4491a7957

View File

@@ -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);
}