finished TraitDictionary. Refactored permanent actor-removal.
This commit is contained in:
@@ -26,8 +26,8 @@ namespace OpenRA.Mods.RA
|
||||
public ReplaceWithActor(Actor self, ReplaceWithActorInfo info)
|
||||
{
|
||||
self.World.AddFrameEndTask(w =>
|
||||
{
|
||||
w.Remove(self);
|
||||
{
|
||||
self.Destroy();
|
||||
w.CreateActor(info.Actor, new TypeDictionary
|
||||
{
|
||||
new LocationInit( self.Location ),
|
||||
|
||||
Reference in New Issue
Block a user