If there's no base tile, it sure as hell ain't passable.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2386 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-04-07 22:04:39 +00:00
parent 8d49b3cf7c
commit 036104a7d5
@@ -1,5 +1,5 @@
//
// $Id: SimpleDisplayMisoSceneImpl.java,v 1.3 2003/04/01 02:17:58 mdb Exp $
// $Id: SimpleDisplayMisoSceneImpl.java,v 1.4 2003/04/07 22:04:39 mdb Exp $
package com.threerings.miso.client;
@@ -150,7 +150,7 @@ public class SimpleDisplayMisoSceneImpl extends SimpleMisoSceneImpl
public boolean canTraverse (Object trav, int x, int y)
{
BaseTile tile = getBaseTile(x, y);
return (((tile == null) || tile.isPassable()) &&
return (((tile != null) && tile.isPassable()) &&
!_covered[y*_model.width+x]);
}