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;
|
package com.threerings.cast;
|
||||||
|
|
||||||
@@ -192,10 +192,13 @@ public class CharacterSprite extends ImageSprite
|
|||||||
*/
|
*/
|
||||||
protected void halt ()
|
protected void halt ()
|
||||||
{
|
{
|
||||||
// disable animation
|
// only do something if we're actually animating
|
||||||
setAnimationMode(NO_ANIMATION);
|
if (_animMode != NO_ANIMATION) {
|
||||||
// come to a halt looking settled and at peace
|
// disable animation
|
||||||
setActionSequence(getRestingAction());
|
setAnimationMode(NO_ANIMATION);
|
||||||
|
// come to a halt looking settled and at peace
|
||||||
|
setActionSequence(getRestingAction());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The action to use when at rest. */
|
/** The action to use when at rest. */
|
||||||
|
|||||||
Reference in New Issue
Block a user