Fix missile having no facing set on spawn

This commit is contained in:
Gustas
2023-12-29 13:23:07 +02:00
committed by abcdefg30
parent 9524db20fe
commit 03dd99699b

View File

@@ -262,6 +262,9 @@ namespace OpenRA.Mods.Common.Projectiles
minLaunchAngle = info.MinimumLaunchAngle;
maxLaunchAngle = info.MaximumLaunchAngle;
// Make sure the projectile on being spawned is approximately looking at the correct direction.
renderFacing = args.Facing;
var world = args.SourceActor.World;
if (world.SharedRandom.Next(100) <= info.LockOnProbability)