fixed #2286 - chrono kills passengers on return too

This commit is contained in:
Chris Forbes
2012-07-01 13:31:04 +12:00
parent f5c606266d
commit 109546d20f
4 changed files with 26 additions and 19 deletions

View File

@@ -52,12 +52,10 @@ namespace OpenRA.Mods.RA
if (order.OrderString == "ChronoshiftSelf" && movement.CanEnterCell(order.TargetLocation))
{
if (self.Owner == self.World.LocalPlayer)
{
self.World.CancelInputMode();
}
self.CancelActivity();
self.QueueActivity(new Teleport(order.TargetLocation));
self.QueueActivity(new Teleport(null, order.TargetLocation, true));
Sound.Play("chrotnk1.aud", self.CenterLocation);
Sound.Play("chrotnk1.aud", order.TargetLocation.ToPPos());
chargeTick = 25 * self.Info.Traits.Get<ChronoshiftDeployInfo>().ChargeTime;