Fix voice on unpathable terrain

This commit is contained in:
Paul Chote
2010-07-23 22:45:11 +12:00
parent d5c43c9fda
commit c74fe87fc8

View File

@@ -127,7 +127,7 @@ namespace OpenRA.Traits
public string VoicePhraseForOrder(Actor self, Order order) public string VoicePhraseForOrder(Actor self, Order order)
{ {
return (order.OrderString == "Move") ? "Move" : null; return (order.OrderString == "Move" && CanEnterCell(order.TargetLocation)) ? "Move" : null;
} }
public int2 TopLeft { get { return toCell; } } public int2 TopLeft { get { return toCell; } }