Propagate race to produced actors.
This commit is contained in:
@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Cnc
|
||||
public ProductionAirdrop(ProductionAirdropInfo info, Actor self)
|
||||
: base(info, self) { }
|
||||
|
||||
public override bool Produce(Actor self, ActorInfo producee)
|
||||
public override bool Produce(Actor self, ActorInfo producee, string raceVariant)
|
||||
{
|
||||
var owner = self.Owner;
|
||||
|
||||
@@ -69,7 +69,8 @@ namespace OpenRA.Mods.Cnc
|
||||
|
||||
foreach (var cargo in self.TraitsImplementing<INotifyDelivery>())
|
||||
cargo.Delivered(self);
|
||||
self.World.AddFrameEndTask(ww => DoProduction(self, producee, exit));
|
||||
|
||||
self.World.AddFrameEndTask(ww => DoProduction(self, producee, exit, raceVariant));
|
||||
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", info.ReadyAudio, self.Owner.Country.Race);
|
||||
}));
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
if (first != null && first.Done && actor.Traits.Contains<BuildingInfo>())
|
||||
{
|
||||
Sound.Play(TabClick);
|
||||
World.OrderGenerator = new PlaceBuildingOrderGenerator(CurrentQueue.Actor, icon.Name);
|
||||
World.OrderGenerator = new PlaceBuildingOrderGenerator(CurrentQueue, icon.Name);
|
||||
}
|
||||
else if (first != null && first.Paused)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user