Separate the notion of tile passability from tile objects since
passability is specific to the miso layer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@405 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ViewerSceneViewPanel.java,v 1.16 2001/10/01 22:18:24 mdb Exp $
|
||||
// $Id: ViewerSceneViewPanel.java,v 1.17 2001/10/08 21:04:26 shaper Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
@@ -80,6 +80,12 @@ public class ViewerSceneViewPanel extends SceneViewPanel
|
||||
|
||||
// get the path from here to there
|
||||
Path path = _view.getPath(_sprite, x, y);
|
||||
if (path == null) {
|
||||
_sprite.cancelMove();
|
||||
return;
|
||||
}
|
||||
|
||||
((LineSegmentPath)path).setVelocity(100f/1000f);
|
||||
_sprite.move(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user