Fix projectile shadow alpha calculation.

This commit is contained in:
Mustafa Alperen Seki
2022-02-02 20:31:56 +03:00
committed by abcdefg30
parent 1813edc74b
commit c096934db8
3 changed files with 3 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ namespace OpenRA.Mods.Common.Projectiles
remainingBounces = info.BounceCount;
shadowColor = new float3(info.ShadowColor.R, info.ShadowColor.G, info.ShadowColor.B) / 255f;
shadowAlpha = info.ShadowColor.A;
shadowAlpha = info.ShadowColor.A / 255f;
}
WAngle GetEffectiveFacing()

View File

@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Projectiles
}
shadowColor = new float3(info.ShadowColor.R, info.ShadowColor.G, info.ShadowColor.B) / 255f;
shadowAlpha = info.ShadowColor.A;
shadowAlpha = info.ShadowColor.A / 255f;
}
public void Tick(World world)

View File

@@ -272,7 +272,7 @@ namespace OpenRA.Mods.Common.Projectiles
trailPalette += args.SourceActor.Owner.InternalName;
shadowColor = new float3(info.ShadowColor.R, info.ShadowColor.G, info.ShadowColor.B) / 255f;
shadowAlpha = info.ShadowColor.A;
shadowAlpha = info.ShadowColor.A / 255f;
}
static int LoopRadius(int speed, int rot)