aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_tim.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-05-18 01:39:58 +0000
committerFlorian Kagerer2009-05-18 01:39:58 +0000
commit80ed10fc7244478aa98f9fd86e07f548ae2532e8 (patch)
tree57fb21b8aa82b04435432504e4db6387f71dc7e0 /engines/kyra/script_tim.cpp
parent50805cb7ea26d2d2220d1a61d943b1ea7086048c (diff)
downloadscummvm-rg350-80ed10fc7244478aa98f9fd86e07f548ae2532e8.tar.gz
scummvm-rg350-80ed10fc7244478aa98f9fd86e07f548ae2532e8.tar.bz2
scummvm-rg350-80ed10fc7244478aa98f9fd86e07f548ae2532e8.zip
LOL: - implemented fog spell
svn-id: r40673
Diffstat (limited to 'engines/kyra/script_tim.cpp')
-rw-r--r--engines/kyra/script_tim.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp
index ce45dc4926..71a183d7a8 100644
--- a/engines/kyra/script_tim.cpp
+++ b/engines/kyra/script_tim.cpp
@@ -597,6 +597,7 @@ int TIMInterpreter::cmd_wsaDisplayFrame(const uint16 *param) {
Animation &anim = _animations[param[0]];
const int frame = param[1];
int page = (anim.wsaCopyParams & 0x4000) != 0 ? 2 : _drawPage2;
+ // WORKAROUND for some bugged scripts that will try to display frames of non-existent animations
if (anim.wsa)
anim.wsa->displayFrame(frame, page, anim.x, anim.y, anim.wsaCopyParams & 0xF0FF, 0, 0);
if (!page)
@@ -945,6 +946,7 @@ void TIMInterpreter_LoL::startBackgroundAnimation(int animIndex, int part) {
anim->curFrame = p->firstFrame;
anim->cyclesCompleted = 0;
+ // WORKAROUND for some bugged scripts that will try to display frames of non-existent animations
if (anim->wsa)
anim->wsa->displayFrame(anim->curFrame - 1, 0, anim->x, anim->y, 0);
}