diff options
author | David Turner | 2010-01-03 08:27:33 +0000 |
---|---|---|
committer | David Turner | 2010-01-03 08:27:33 +0000 |
commit | 715b48b987a5abd1052e3638673d3830b5fa1e21 (patch) | |
tree | 0700a05c9b4a7c0d402e98460ef25b6d34bdc62d /engines/mohawk | |
parent | 986a75b7ee11ef74746a9291c469016dec5dd764 (diff) | |
download | scummvm-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
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/myst_scripts.cpp | 5 |
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 |