Allow vis to extend outside the map, but not explored.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user