diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index 6b055b7311..ab78b2e17a 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -178,7 +178,7 @@ namespace OpenRA.Mods.Common.Traits readonly bool returnToCellOnCreation; readonly bool returnToCellOnCreationRecalculateSubCell = true; readonly int creationActivityDelay; - readonly CPos[] creationRallypoint; + public readonly CPos[] CreationRallypoints; #region IMove CurrentMovementTypes MovementType movementTypes; @@ -301,7 +301,7 @@ namespace OpenRA.Mods.Common.Traits } creationActivityDelay = init.GetValue(0); - creationRallypoint = init.GetOrDefault()?.Value; + CreationRallypoints = init.GetOrDefault()?.Value; } protected override void Created(Actor self) @@ -1021,8 +1021,8 @@ namespace OpenRA.Mods.Common.Traits Activity ICreationActivity.GetCreationActivity() { - if (returnToCellOnCreation || creationRallypoint != null || creationActivityDelay > 0) - return new LeaveProductionActivity(self, creationActivityDelay, creationRallypoint, + if (returnToCellOnCreation || CreationRallypoints != null || creationActivityDelay > 0) + return new LeaveProductionActivity(self, creationActivityDelay, CreationRallypoints, returnToCellOnCreation ? new ReturnToCellActivity(self, creationActivityDelay, returnToCellOnCreationRecalculateSubCell) : null); return null;