stop when we get to the end.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1703 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MultiFrameAnimation.java,v 1.1 2002/09/17 20:08:21 mdb Exp $
|
// $Id: MultiFrameAnimation.java,v 1.2 2002/09/17 21:58:12 ray Exp $
|
||||||
|
|
||||||
package com.threerings.media.animation;
|
package com.threerings.media.animation;
|
||||||
|
|
||||||
@@ -72,7 +72,10 @@ public class MultiFrameAnimation extends Animation
|
|||||||
public void tick (long tickStamp)
|
public void tick (long tickStamp)
|
||||||
{
|
{
|
||||||
int fidx = _seeker.tick(tickStamp);
|
int fidx = _seeker.tick(tickStamp);
|
||||||
if (fidx != _fidx) {
|
if (fidx == -1) {
|
||||||
|
_finished = true;
|
||||||
|
|
||||||
|
} else if (fidx != _fidx) {
|
||||||
// update our frame index and bounds
|
// update our frame index and bounds
|
||||||
setFrameIndex(fidx);
|
setFrameIndex(fidx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user