Skip to content

Commit

Permalink
ZVISION: Fix animation_node upper frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Dec 24, 2013
1 parent 0c7d1d2 commit 48156de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/zvision/animation_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ void AnimationNode::addPlayNode(int32 slot, int x, int y, int x2, int y2, int st
nod.pos = Common::Rect(x, y, x2 + 1, y2 + 1);
nod.start = start_frame;
nod.stop = end_frame;
if (_fileType == RLF) {
if (nod.stop >= (int)_animation.rlf->frameCount())
nod.stop = _animation.rlf->frameCount() - 1;
} else if (_fileType == AVI) {
if (nod.stop > (int)_animation.avi->getFrameCount())
nod.stop = _animation.avi->getFrameCount();
}
nod.slot = slot;
nod._cur_frm = -1;
nod._delay = 0;
Expand Down

0 comments on commit 48156de

Please sign in to comment.