Allow vis to extend outside the map, but not explored.

This commit is contained in:
Paul Chote
2010-11-26 18:44:02 +13:00
parent 29ac9a594a
commit 1d81e71bcb

View File

@@ -208,9 +208,6 @@ namespace OpenRA.Traits
public bool IsVisible(int2 xy) { return IsVisible(xy.X, xy.Y); } public bool IsVisible(int2 xy) { return IsVisible(xy.X, xy.Y); }
public bool IsVisible(int x, int y) public bool IsVisible(int x, int y)
{ {
if (!map.IsInMap(x, y))
return false;
if (disabled || world.LocalPlayer == null) if (disabled || world.LocalPlayer == null)
return true; return true;