diff --git a/OpenRA.Mods.RA/Missions/Allies02Script.cs b/OpenRA.Mods.RA/Missions/Allies02Script.cs index 497ae81cef..4ab992aabf 100644 --- a/OpenRA.Mods.RA/Missions/Allies02Script.cs +++ b/OpenRA.Mods.RA/Missions/Allies02Script.cs @@ -594,25 +594,15 @@ namespace OpenRA.Mods.RA.Missions foreach (var actor in actors.Where(a => a.Value.Owner == allies)) { actor.Value.ChangeOwner(allies2); - if (actor.Value.Info.Name == "proc.nofreeactor") - { - CreateAlliedHarvester(actor.Value.Location); - } } + world.CreateActor("proc", new TypeDictionary + { + new LocationInit(actors["Allies2ProcPoint"].Location), + new OwnerInit(allies2) + }); }); } - void CreateAlliedHarvester(CPos location) - { - var actor = world.CreateActor("harv", new TypeDictionary - { - new LocationInit(location + new CVec(1, 2)), - new OwnerInit(allies2), - new FacingInit(64) - }); - actor.QueueActivity(new FindResources()); - } - void PlayMusic() { if (!Rules.InstalledMusic.Any()) diff --git a/mods/ra/maps/allies-02/map.yaml b/mods/ra/maps/allies-02/map.yaml index 4119daa126..b391468751 100644 --- a/mods/ra/maps/allies-02/map.yaml +++ b/mods/ra/maps/allies-02/map.yaml @@ -1481,7 +1481,7 @@ Actors: Actor290: apwr Location: 52,42 Owner: Soviets - Actor924: proc.nofreeactor + Allies2ProcPoint: waypoint Location: 25,95 Owner: Allies Actor455: fenc @@ -2869,14 +2869,6 @@ Rules: Allies02Script: MissionObjectivesPanel: ObjectivesPanel: MISSION_OBJECTIVES - PROC.NoFreeActor: - Inherits: PROC - -FreeActor: - -Buildable: - RenderBuilding: - Image: PROC - ProvidesCustomPrerequisite: - Prerequisite: proc TRAN.Husk1: Burns: Damage: 0