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:
Michael Bayne
2002-05-06 23:24:15 +00:00
parent 320706e857
commit 181fa3269d
@@ -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; package com.threerings.cast;
@@ -192,11 +192,14 @@ public class CharacterSprite extends ImageSprite
*/ */
protected void halt () protected void halt ()
{ {
// only do something if we're actually animating
if (_animMode != NO_ANIMATION) {
// disable animation // disable animation
setAnimationMode(NO_ANIMATION); setAnimationMode(NO_ANIMATION);
// come to a halt looking settled and at peace // come to a halt looking settled and at peace
setActionSequence(getRestingAction()); setActionSequence(getRestingAction());
} }
}
/** The action to use when at rest. */ /** The action to use when at rest. */
protected String _restingAction = STANDING; protected String _restingAction = STANDING;