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:
@@ -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;
|
||||
|
||||
@@ -195,7 +195,10 @@ public class CharacterSprite extends ImageSprite
|
||||
// disable animation
|
||||
setAnimationMode(NO_ANIMATION);
|
||||
// come to a halt looking settled and at peace
|
||||
setActionSequence(getRestingAction());
|
||||
String rest = getRestingAction();
|
||||
if (rest != null) {
|
||||
setActionSequence(rest);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user