From 96377a99c4f74138b528e229a431fd5984da9ccb Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 9 Jun 2018 18:03:17 +0200 Subject: [PATCH] Fix losing a tick when next Move.ChildActivity is Turn While the first tick of the MoveFirstHalf child would run at the parent Move tick (see 2nd-to-last line in Move.Tick), this was not the case for Turn. As a result, this Move tick would get wasted if a Turn was necessary, which at least contibuted to that visible jerk at the end of each L-turn (actors usually don't have the exact facing needed for the next move at the end of an L-turn). --- OpenRA.Mods.Common/Activities/Move/Move.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.Common/Activities/Move/Move.cs b/OpenRA.Mods.Common/Activities/Move/Move.cs index 1ebdea5b71..7f7bda3552 100644 --- a/OpenRA.Mods.Common/Activities/Move/Move.cs +++ b/OpenRA.Mods.Common/Activities/Move/Move.cs @@ -225,6 +225,7 @@ namespace OpenRA.Mods.Common.Activities { path.Add(nextCell.Value.First); QueueChild(new Turn(self, firstFacing)); + ChildActivity = ActivityUtils.RunActivity(self, ChildActivity); return this; }