diff options
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r-- | engines/draci/animation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index a0f983100b..560f03ffcf 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -163,6 +163,11 @@ void Animation::addFrame(Drawable *frame, const SoundSample *sample) { _samples.push_back(sample); } +void Animation::replaceFrame(int i, Drawable *frame, const SoundSample *sample) { + _frames[i] = frame; + _samples[i] = sample; +} + Drawable *Animation::getCurrentFrame() { // If there are no frames stored, return NULL return _frames.size() > 0 ? _frames[_currentFrame] : NULL; |