Don't switch to a rest action if null is returned by getRestingAction()

(used now in YoCharacterSprite)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1444 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-06-12 07:00:49 +00:00
parent ad5b77899f
commit 7ffa3087e1
@@ -1,5 +1,5 @@
// //
// $Id: CharacterSprite.java,v 1.32 2002/05/31 03:38:02 mdb Exp $ // $Id: CharacterSprite.java,v 1.33 2002/06/12 07:00:49 ray Exp $
package com.threerings.cast; package com.threerings.cast;
@@ -195,7 +195,10 @@ public class CharacterSprite extends ImageSprite
// 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()); String rest = getRestingAction();
if (rest != null) {
setActionSequence(rest);
}
} }
} }