Revert "Make creationrallypoints public. Required for custom rallypoint functionality"

This reverts commit 0c5e998e31.
This commit is contained in:
Matthias Mailänder
2025-07-26 17:01:15 +02:00
parent 0c5e998e31
commit 5f51dec9f9

View File

@@ -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<CreationActivityDelayInit, int>(0);
CreationRallypoints = init.GetOrDefault<RallyPointInit>()?.Value;
creationRallypoint = init.GetOrDefault<RallyPointInit>()?.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;