Skip to content

Commit 03dd996

Browse files
PunkPunabcdefg30
authored andcommitted
Fix missile having no facing set on spawn
1 parent 9524db2 commit 03dd996

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

OpenRA.Mods.Common/Projectiles/Missile.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ public Missile(MissileInfo info, ProjectileArgs args)
262262
minLaunchAngle = info.MinimumLaunchAngle;
263263
maxLaunchAngle = info.MaximumLaunchAngle;
264264

265+
// Make sure the projectile on being spawned is approximately looking at the correct direction.
266+
renderFacing = args.Facing;
267+
265268
var world = args.SourceActor.World;
266269

267270
if (world.SharedRandom.Next(100) <= info.LockOnProbability)

0 commit comments

Comments
 (0)