This was a tad broken - if an animation happened to paint before it ticked, it'd try to paint tile -1 which obviously didn't exist. This change may break any custom sequencers anyone has but seems necessary...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@899 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -35,8 +35,9 @@ public interface FrameSequencer
|
||||
*
|
||||
* @param source the multie-frame image that is providing the
|
||||
* animation frames.
|
||||
* @return initial frame index
|
||||
*/
|
||||
public void init (MultiFrameImage source);
|
||||
public int init (MultiFrameImage source);
|
||||
|
||||
/**
|
||||
* Called every display frame, the frame sequencer should return the
|
||||
@@ -76,10 +77,12 @@ public interface FrameSequencer
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
public void init (MultiFrameImage source)
|
||||
public int init (MultiFrameImage source)
|
||||
{
|
||||
_frameCount = source.getFrameCount();
|
||||
_startStamp = 0l;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
|
||||
Reference in New Issue
Block a user