fix some fail desyncs in chronoshift code

This commit is contained in:
Chris Forbes
2010-05-26 19:02:43 +12:00
parent e7b7f69caf
commit 270941cfde
5 changed files with 8 additions and 13 deletions

View File

@@ -67,10 +67,6 @@ namespace OpenRA.Mods.Aftermath
var movement = self.traits.GetOrDefault<IMovement>();
if (order.OrderString == "ChronoshiftSelf" && movement.CanEnterCell(order.TargetLocation))
{
// Cannot chronoshift into unexplored location
if (!self.Owner.Shroud.IsExplored(order.TargetLocation))
return;
if (self.Owner == self.World.LocalPlayer)
Game.controller.CancelInputMode();