aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_v1.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-07-27 00:09:13 +0000
committerJohannes Schickel2006-07-27 00:09:13 +0000
commitd9e5134919141fe50ab97399f6951b8d3fc8950c (patch)
tree7a1481fef2381a2d38f3360edbd0cbd7c859e6e7 /engines/kyra/script_v1.cpp
parentbcc892ec81a5af68874f89135e2f5659271649e2 (diff)
downloadscummvm-rg350-d9e5134919141fe50ab97399f6951b8d3fc8950c.tar.gz
scummvm-rg350-d9e5134919141fe50ab97399f6951b8d3fc8950c.tar.bz2
scummvm-rg350-d9e5134919141fe50ab97399f6951b8d3fc8950c.zip
Workaround for bug #1498221 ("KYRA1: Glitches when meeting Zanthia").
svn-id: r23608
Diffstat (limited to 'engines/kyra/script_v1.cpp')
-rw-r--r--engines/kyra/script_v1.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/kyra/script_v1.cpp b/engines/kyra/script_v1.cpp
index ce2be68a91..b315a92b4a 100644
--- a/engines/kyra/script_v1.cpp
+++ b/engines/kyra/script_v1.cpp
@@ -753,6 +753,20 @@ int KyraEngine::cmd_displayWSASequentialFrames(ScriptState *script) {
if (maxTime - 1 <= 0)
maxTime = 1;
+ // Workaround for bug #1498221 "KYRA1: Glitches when meeting Zanthia"
+ // the original didn'to do a forced screen update after displaying a wsa frame
+ // while we have to do it, which make brandon disappear for a short moment,
+ // which shouldn't happen. So we're not updating the screen for this special
+ // case too.
+ if (startFrame == 18 && endFrame == 18 && _currentRoom == 45) {
+ _movieObjects[wsaIndex]->setX(xpos);
+ _movieObjects[wsaIndex]->setY(ypos);
+ _movieObjects[wsaIndex]->setDrawPage(0);
+ _movieObjects[wsaIndex]->displayFrame(18);
+ delay(waitTime * _tickLength);
+ return 0;
+ }
+
_movieObjects[wsaIndex]->setX(xpos);
_movieObjects[wsaIndex]->setY(ypos);
_movieObjects[wsaIndex]->setDrawPage(0);