Revert "Suppress MoveIntoWorldInit for map-placed Mobile actors."
This reverts commit f0c28cc15334c7224630c375d669274f8da8fb31.
This commit is contained in:
@@ -90,7 +90,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
new LocationInit(sp + unitGroup.BaseActorOffset),
|
||||
new OwnerInit(p),
|
||||
new SkipMakeAnimsInit(),
|
||||
new SkipMoveIntoWorldInit(),
|
||||
new FacingInit(unitGroup.BaseActorFacing < 0 ? w.SharedRandom.Next(256) : unitGroup.BaseActorFacing),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
var initDict = actorReference.InitDict;
|
||||
initDict.Add(new SkipMakeAnimsInit());
|
||||
initDict.Add(new SkipMoveIntoWorldInit());
|
||||
initDict.Add(new SpawnedByMapInit(kv.Key));
|
||||
|
||||
if (PreventMapSpawn(world, actorReference, preventMapSpawns))
|
||||
@@ -64,7 +63,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
|
||||
public class SkipMakeAnimsInit : IActorInit, ISuppressInitExport { }
|
||||
public class SkipMoveIntoWorldInit : IActorInit, ISuppressInitExport { }
|
||||
public class SpawnedByMapInit : IActorInit<string>, ISuppressInitExport
|
||||
{
|
||||
public readonly string Name;
|
||||
|
||||
Reference in New Issue
Block a user