behavior change: null tiles are passable. Hopefully this doesn't break
anything, but it was required to make sprites walk off/on-screen. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1446 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: AStarPathUtil.java,v 1.14 2002/05/17 19:07:47 ray Exp $
|
// $Id: AStarPathUtil.java,v 1.15 2002/06/12 07:02:31 ray Exp $
|
||||||
|
|
||||||
package com.threerings.miso.scene.util;
|
package com.threerings.miso.scene.util;
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ public class AStarPathUtil
|
|||||||
{
|
{
|
||||||
if (isCoordinateValid(info, x, y)) {
|
if (isCoordinateValid(info, x, y)) {
|
||||||
BaseTile tile = info.scene.getBaseTile(x, y);
|
BaseTile tile = info.scene.getBaseTile(x, y);
|
||||||
return (tile != null) && info.trav.canTraverse(tile);
|
return (tile == null) || info.trav.canTraverse(tile);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user