diff options
author | Florian Kagerer | 2009-05-18 01:39:58 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-05-18 01:39:58 +0000 |
commit | 80ed10fc7244478aa98f9fd86e07f548ae2532e8 (patch) | |
tree | 57fb21b8aa82b04435432504e4db6387f71dc7e0 /engines/kyra/script_tim.cpp | |
parent | 50805cb7ea26d2d2220d1a61d943b1ea7086048c (diff) | |
download | scummvm-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.cpp | 2 |
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); } |