Skip to content

Commit 3eb6b8b

Browse files
committed
Revert "Merge remote-tracking branch 'darkademic/dev'"
This reverts commit 2b383ba, reversing changes made to 5387576.
1 parent 2b383ba commit 3eb6b8b

39 files changed

Lines changed: 272 additions & 976 deletions

OpenRA.Mods.CA/Traits/AdvancesTimeline.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

OpenRA.Mods.CA/Traits/Infiltration/InfiltrateToCreateProxyActor.cs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
#endregion
1010

11-
using System.Collections.Generic;
1211
using OpenRA.Mods.Common;
1312
using OpenRA.Mods.Common.Traits;
1413
using OpenRA.Primitives;
@@ -47,21 +46,16 @@ class InfiltrateToCreateProxyActorInfo : TraitInfo
4746
[Desc("If true, spawn at the location of the infiltrated actor.")]
4847
public readonly bool UseCenterPosition = false;
4948

50-
[Desc("If true, the spawned actor is destroyed if the parent actor dies, is sold, or is captured.")]
51-
public readonly bool LinkedToParent = false;
52-
5349
public override object Create(ActorInitializer init) { return new InfiltrateToCreateProxyActor(this); }
5450
}
5551

56-
class InfiltrateToCreateProxyActor : INotifyInfiltrated, INotifyRemovedFromWorld
52+
class InfiltrateToCreateProxyActor : INotifyInfiltrated
5753
{
5854
readonly InfiltrateToCreateProxyActorInfo info;
59-
List<Actor> spawnedActors;
6055

6156
public InfiltrateToCreateProxyActor(InfiltrateToCreateProxyActorInfo info)
6257
{
6358
this.info = info;
64-
spawnedActors = new List<Actor>();
6559
}
6660

6761
void INotifyInfiltrated.Infiltrated(Actor self, Actor infiltrator, BitSet<TargetableType> types)
@@ -95,16 +89,7 @@ void INotifyInfiltrated.Infiltrated(Actor self, Actor infiltrator, BitSet<Target
9589
else if (info.UseLocation)
9690
td.Add(new LocationInit(self.Location));
9791

98-
infiltrator.World.AddFrameEndTask(w => spawnedActors.Add(w.CreateActor(info.Proxy, td)));
99-
}
100-
101-
void INotifyRemovedFromWorld.RemovedFromWorld(Actor self)
102-
{
103-
foreach (var a in spawnedActors)
104-
{
105-
if (!a.IsDead)
106-
a.Dispose();
107-
}
92+
infiltrator.World.AddFrameEndTask(w => w.CreateActor(info.Proxy, td));
10893
}
10994
}
11095
}

OpenRA.Mods.CA/Traits/Player/ProvidesPrerequisitesOnTimeline.cs

Lines changed: 0 additions & 237 deletions
This file was deleted.

0 commit comments

Comments
 (0)