Only update ourselves in halt() if we actually stopped something.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1342 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: CharacterSprite.java,v 1.28 2002/05/04 19:38:13 mdb Exp $
|
||||
// $Id: CharacterSprite.java,v 1.29 2002/05/06 23:24:15 mdb Exp $
|
||||
|
||||
package com.threerings.cast;
|
||||
|
||||
@@ -192,10 +192,13 @@ public class CharacterSprite extends ImageSprite
|
||||
*/
|
||||
protected void halt ()
|
||||
{
|
||||
// disable animation
|
||||
setAnimationMode(NO_ANIMATION);
|
||||
// come to a halt looking settled and at peace
|
||||
setActionSequence(getRestingAction());
|
||||
// only do something if we're actually animating
|
||||
if (_animMode != NO_ANIMATION) {
|
||||
// disable animation
|
||||
setAnimationMode(NO_ANIMATION);
|
||||
// come to a halt looking settled and at peace
|
||||
setActionSequence(getRestingAction());
|
||||
}
|
||||
}
|
||||
|
||||
/** The action to use when at rest. */
|
||||
|
||||
Reference in New Issue
Block a user