aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorrichiesams2013-09-03 01:23:17 -0500
committerrichiesams2013-09-03 01:23:17 -0500
commit5d86eb4a4af6416b8c40a6cb5aaf234bddabde95 (patch)
treece790ac03d7d69c32122ca96279d8f4a881c8168 /engines/zvision
parentb3a32746162399d065efc33b71770ddb6e3eeab0 (diff)
downloadscummvm-rg350-5d86eb4a4af6416b8c40a6cb5aaf234bddabde95.tar.gz
scummvm-rg350-5d86eb4a4af6416b8c40a6cb5aaf234bddabde95.tar.bz2
scummvm-rg350-5d86eb4a4af6416b8c40a6cb5aaf234bddabde95.zip
ZVISION: Change ActionPlayAnimation::_loop refer to a count rather than a boolean
_loopCount refers to the number of times an animation should be played, where 0 corresponds to infinite.
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/actions.cpp4
-rw-r--r--engines/zvision/actions.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp
index 0265ebd410..4c532ebf9d 100644
--- a/engines/zvision/actions.cpp
+++ b/engines/zvision/actions.cpp
@@ -224,15 +224,13 @@ bool ActionPreloadAnimation::execute(ZVision *engine) {
ActionPlayAnimation::ActionPlayAnimation(const Common::String &line) {
char fileName[25];
- uint loop;
// The two %*u are always 0 and dont seem to have a use
sscanf(line.c_str(),
"%*[^:]:%*[^:]:%u(%25s %u %u %u %u %u %u %u %*u %*u %u %u)",
- &_key, fileName, &_x, &_y, &_width, &_height, &_start, &_end, &loop, &_mask, &_framerate);
+ &_key, fileName, &_x, &_y, &_width, &_height, &_start, &_end, &_loopCount, &_mask, &_framerate);
_fileName = Common::String(fileName);
- _loop = loop == 1 ? true : false;
}
bool ActionPlayAnimation::execute(ZVision *engine) {
diff --git a/engines/zvision/actions.h b/engines/zvision/actions.h
index 5e7c2c63e3..b36e277d0e 100644
--- a/engines/zvision/actions.h
+++ b/engines/zvision/actions.h
@@ -239,7 +239,7 @@ private:
uint32 _end;
uint _mask;
uint _framerate;
- bool _loop;
+ uint _loopCount;
};
class ActionPreloadAnimation : public ResultAction {