aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner2010-01-03 08:27:33 +0000
committerDavid Turner2010-01-03 08:27:33 +0000
commit715b48b987a5abd1052e3638673d3830b5fa1e21 (patch)
tree0700a05c9b4a7c0d402e98460ef25b6d34bdc62d
parent986a75b7ee11ef74746a9291c469016dec5dd764 (diff)
downloadscummvm-rg350-715b48b987a5abd1052e3638673d3830b5fa1e21.tar.gz
scummvm-rg350-715b48b987a5abd1052e3638673d3830b5fa1e21.tar.bz2
scummvm-rg350-715b48b987a5abd1052e3638673d3830b5fa1e21.zip
Mohawk : Stop Myst Script Opcode 200 continuously reloading the same image...
svn-id: r46919
-rw-r--r--engines/mohawk/myst_scripts.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp
index a79e62ee2d..39ce212dd6 100644
--- a/engines/mohawk/myst_scripts.cpp
+++ b/engines/mohawk/myst_scripts.cpp
@@ -22,7 +22,7 @@
* $Id$
*
*/
-
+
#include "mohawk/myst.h"
#include "mohawk/graphics.h"
#include "mohawk/myst_scripts.h"
@@ -3125,7 +3125,8 @@ void MystScriptParser::opcode_200_run() {
else
rect = Common::Rect(0, 0, 544, 333);
- _vm->_gfx->copyImageToScreen(g_opcode200Parameters.imageBaseId + curImageIndex, rect);
+ if (curImageIndex != lastImageIndex)
+ _vm->_gfx->copyImageToScreen(g_opcode200Parameters.imageBaseId + curImageIndex, rect);
// TODO: Comparison with original engine shows that this simple solution
// may not be the correct one and the choice of which sound