fix some fail desyncs in chronoshift code
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -41,7 +41,8 @@ namespace OpenRA.Mods.Aftermath.Orders
|
||||
yield break;
|
||||
}
|
||||
|
||||
yield return new Order("ChronoshiftSelf", self, xy);
|
||||
if (world.LocalPlayer.Shroud.IsExplored(xy))
|
||||
yield return new Order("ChronoshiftSelf", self, xy);
|
||||
}
|
||||
|
||||
public void Tick( World world ) { }
|
||||
|
||||
Reference in New Issue
Block a user