Remove hard-coded LaserZap transparency.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user