From 03dd99699b3624d136e1752b122f7811d494b1bd Mon Sep 17 00:00:00 2001 From: Gustas Date: Fri, 29 Dec 2023 13:23:07 +0200 Subject: [PATCH] Fix missile having no facing set on spawn --- OpenRA.Mods.Common/Projectiles/Missile.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Projectiles/Missile.cs b/OpenRA.Mods.Common/Projectiles/Missile.cs index 190fc76dc3..a14ddc46e9 100644 --- a/OpenRA.Mods.Common/Projectiles/Missile.cs +++ b/OpenRA.Mods.Common/Projectiles/Missile.cs @@ -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)