map buildings no longer get free harvesters

This commit is contained in:
Chris Forbes
2009-11-08 19:42:59 +13:00
parent 8c00e803d2
commit 5fd7f477c1

View File

@@ -9,16 +9,16 @@ namespace OpenRa.Game.Traits
{
public AcceptsOre(Actor self)
{
/* create the free harvester! */
Game.world.AddFrameEndTask(
w =>
{
var harvester = new Actor("harv", self.Location + new int2(1, 2), self.Owner);
var mobile = harvester.traits.Get<Mobile>();
mobile.facing = 64;
mobile.InternalSetActivity( new Harvest() );
w.Add(harvester);
});
if (!Game.skipMakeAnims)
Game.world.AddFrameEndTask(
w =>
{ /* create the free harvester! */
var harvester = new Actor("harv", self.Location + new int2(1, 2), self.Owner);
var mobile = harvester.traits.Get<Mobile>();
mobile.facing = 64;
mobile.InternalSetActivity(new Harvest());
w.Add(harvester);
});
}
}
}