From 5f51dec9f962a9280cb64c1564f83c502ac68eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 26 Jul 2025 17:01:15 +0200 Subject: [PATCH] Revert "Make creationrallypoints public. Required for custom rallypoint functionality" This reverts commit 0c5e998e3100fdb2fb68570caba40e237ea9d1fa. --- OpenRA.Mods.Common/Traits/Mobile.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index ab78b2e17a..6b055b7311 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; - public readonly CPos[] CreationRallypoints; + readonly CPos[] creationRallypoint; #region IMove CurrentMovementTypes MovementType movementTypes; @@ -301,7 +301,7 @@ namespace OpenRA.Mods.Common.Traits } creationActivityDelay = init.GetValue(0); - CreationRallypoints = init.GetOrDefault()?.Value; + creationRallypoint = init.GetOrDefault()?.Value; } protected override void Created(Actor self) @@ -1021,8 +1021,8 @@ namespace OpenRA.Mods.Common.Traits Activity ICreationActivity.GetCreationActivity() { - if (returnToCellOnCreation || CreationRallypoints != null || creationActivityDelay > 0) - return new LeaveProductionActivity(self, creationActivityDelay, CreationRallypoints, + if (returnToCellOnCreation || creationRallypoint != null || creationActivityDelay > 0) + return new LeaveProductionActivity(self, creationActivityDelay, creationRallypoint, returnToCellOnCreation ? new ReturnToCellActivity(self, creationActivityDelay, returnToCellOnCreationRecalculateSubCell) : null); return null;