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:
Ray Greenwell
2002-06-12 07:02:31 +00:00
parent 7de32e1c24
commit b27a863f62
@@ -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;
@@ -199,7 +199,7 @@ public class AStarPathUtil
{
if (isCoordinateValid(info, 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;
}