aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorrichiesams2013-08-02 09:59:20 -0500
committerrichiesams2013-08-04 13:33:00 -0500
commitd43e1e97419fea23ec2952fd05052e09d71b8037 (patch)
treed690af58528c87a3aebc4fb00dc281dc378ddb41 /engines/zvision
parent87f2e9a894442bcd2e2e52aa775154045a9304dd (diff)
downloadscummvm-rg350-d43e1e97419fea23ec2952fd05052e09d71b8037.tar.gz
scummvm-rg350-d43e1e97419fea23ec2952fd05052e09d71b8037.tar.bz2
scummvm-rg350-d43e1e97419fea23ec2952fd05052e09d71b8037.zip
ZVISION: Add filename parsing for ActionPlayAnimation
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/actions.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp
index 689d5408bf..d1f5b93431 100644
--- a/engines/zvision/actions.cpp
+++ b/engines/zvision/actions.cpp
@@ -145,10 +145,14 @@ bool ActionPreloadAnimation::execute(ZVision *engine) {
//////////////////////////////////////////////////////////////////////////////
ActionPlayAnimation::ActionPlayAnimation(const Common::String &line) {
+ char fileName[25];
+
// The two %*u are always 0 and dont seem to have a use
sscanf(line.c_str(),
":animplay:%u(%s %u %u %u %u %u %u %u %*u %*u %u %u)",
- &_key, &_x, &_y, &_width, &_height, &_start, &_end, &_loop, &_mask, &_framerate);
+ &_key, fileName, &_x, &_y, &_width, &_height, &_start, &_end, &_loop, &_mask, &_framerate);
+
+ _fileName = Common::String(fileName);
}
ResultAction *ActionPlayAnimation::clone() const {