Initialize the path before saving it off so that the animation manager
can't attempt to move a sprite along a path that isn't fully prepared. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@846 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Sprite.java,v 1.33 2001/12/19 07:43:09 mdb Exp $
|
||||
// $Id: Sprite.java,v 1.34 2002/01/07 23:51:52 shaper Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
@@ -319,11 +319,11 @@ public class Sprite implements DirectionCodes
|
||||
*/
|
||||
public void move (Path path)
|
||||
{
|
||||
// save our path
|
||||
_path = path;
|
||||
// initialize the path
|
||||
path.init(this, System.currentTimeMillis());
|
||||
|
||||
// and initialize it
|
||||
_path.init(this, System.currentTimeMillis());
|
||||
// and save it off
|
||||
_path = path;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user