aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {