Cancel any path on a sprite if it's removed while in the middle of
execution. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2873 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Sprite.java,v 1.64 2003/04/30 00:44:36 mdb Exp $
|
||||
// $Id: Sprite.java,v 1.65 2003/11/24 21:58:36 mdb Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
@@ -346,6 +346,13 @@ public abstract class Sprite extends AbstractMedia
|
||||
removeObserver(obs);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public void shutdown ()
|
||||
{
|
||||
super.shutdown();
|
||||
cancelMove(); // cancel any active path
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
protected void toString (StringBuffer buf)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user