#47 fixed
This commit is contained in:
@@ -137,6 +137,12 @@ namespace OpenRa.Game
|
|||||||
return ore;
|
return ore;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsOverlaySolid(this Map map, int2 p)
|
||||||
|
{
|
||||||
|
var o = map.MapTiles[p.X, p.Y].overlay;
|
||||||
|
return o < overlayIsFence.Length && overlayIsFence[o];
|
||||||
|
}
|
||||||
|
|
||||||
public static bool[] overlayIsFence =
|
public static bool[] overlayIsFence =
|
||||||
{
|
{
|
||||||
true, true, true, true, true,
|
true, true, true, true, true,
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ namespace OpenRa.Game
|
|||||||
continue;
|
continue;
|
||||||
if (customBlock != null && customBlock(newHere))
|
if (customBlock != null && customBlock(newHere))
|
||||||
continue;
|
continue;
|
||||||
|
if (Game.map.IsOverlaySolid(newHere))
|
||||||
|
continue;
|
||||||
|
|
||||||
var est = heuristic( newHere );
|
var est = heuristic( newHere );
|
||||||
if( est == float.PositiveInfinity )
|
if( est == float.PositiveInfinity )
|
||||||
|
|||||||
Reference in New Issue
Block a user