proc.nofreeactor was causing harv to not unload properly. Just spawn a normal proc after we've changed the owner of the Allied base.

This commit is contained in:
Scott_NZ
2012-11-24 13:56:41 +13:00
parent d15fb82b08
commit a5141f9908
2 changed files with 6 additions and 24 deletions

View File

@@ -594,25 +594,15 @@ namespace OpenRA.Mods.RA.Missions
foreach (var actor in actors.Where(a => a.Value.Owner == allies))
{
actor.Value.ChangeOwner(allies2);
if (actor.Value.Info.Name == "proc.nofreeactor")
{
CreateAlliedHarvester(actor.Value.Location);
}
}
world.CreateActor("proc", new TypeDictionary
{
new LocationInit(actors["Allies2ProcPoint"].Location),
new OwnerInit(allies2)
});
});
}
void CreateAlliedHarvester(CPos location)
{
var actor = world.CreateActor("harv", new TypeDictionary
{
new LocationInit(location + new CVec(1, 2)),
new OwnerInit(allies2),
new FacingInit(64)
});
actor.QueueActivity(new FindResources());
}
void PlayMusic()
{
if (!Rules.InstalledMusic.Any())