aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorrichiesams2013-08-05 11:50:39 -0500
committerrichiesams2013-08-05 11:50:39 -0500
commit3723a0bad3a968e7df30ccb7a4df0fe1e4662e33 (patch)
tree8c7b85ffdb7dbe701ddc15d5042ad24b8b010c86 /engines
parent9dec0adcdc20e0a31594f9971a0c828255a36874 (diff)
downloadscummvm-rg350-3723a0bad3a968e7df30ccb7a4df0fe1e4662e33.tar.gz
scummvm-rg350-3723a0bad3a968e7df30ccb7a4df0fe1e4662e33.tar.bz2
scummvm-rg350-3723a0bad3a968e7df30ccb7a4df0fe1e4662e33.zip
ZVISION: sscanf to a uint first instead of directly to a bool
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/actions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp
index cd84a6b85e..bddec38450 100644
--- a/engines/zvision/actions.cpp
+++ b/engines/zvision/actions.cpp
@@ -186,13 +186,15 @@ 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, &loop, &_mask, &_framerate);
_fileName = Common::String(fileName);
+ _loop = loop == 1 ? true : false;
}
bool ActionPlayAnimation::execute(ZVision *engine) {