diff options
-rw-r--r-- | engines/zvision/actions.cpp | 4 |
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) { |