new mapactor init stuff

This commit is contained in:
Bob
2010-08-01 10:31:23 +12:00
parent f789aef892
commit 10b7ece62e
20 changed files with 149 additions and 49 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.RA.Crates
var location = ChooseEmptyCellNear(collector);
if (location != null)
collector.World.AddFrameEndTask(
w => w.Add(new Actor(w, Info.Unit, location.Value, collector.Owner)));
w => w.CreateActor(Info.Unit, location.Value, collector.Owner));
base.Activate(collector);
}