diff options
author | Bastien Bouclet | 2010-12-11 17:00:22 +0000 |
---|---|---|
committer | Bastien Bouclet | 2010-12-11 17:00:22 +0000 |
commit | 36851d4eb4a4b9fe3f717aee24ab4f10e14ac725 (patch) | |
tree | 2cf70fbebc9408069e084ab53edcaf7f4d90e314 /engines/mohawk/myst_areas.cpp | |
parent | 43aa47dd311da8afe47cbf1e1964dedf98506584 (diff) | |
download | scummvm-rg350-36851d4eb4a4b9fe3f717aee24ab4f10e14ac725.tar.gz scummvm-rg350-36851d4eb4a4b9fe3f717aee24ab4f10e14ac725.tar.bz2 scummvm-rg350-36851d4eb4a4b9fe3f717aee24ab4f10e14ac725.zip |
MOHAWK: Implement Myst opcodes 113, 114, 198 : Vault open / close
In progress tower rotation
svn-id: r54866
Diffstat (limited to 'engines/mohawk/myst_areas.cpp')
-rw-r--r-- | engines/mohawk/myst_areas.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp index d38cccf874..afb3bc7b14 100644 --- a/engines/mohawk/myst_areas.cpp +++ b/engines/mohawk/myst_areas.cpp @@ -410,7 +410,7 @@ void MystResourceType8::drawDataToScreen() { } } -void MystResourceType8::drawConditionalDataToScreen(uint16 state) { +void MystResourceType8::drawConditionalDataToScreen(uint16 state, bool update) { // Need to call overidden Type 7 function to ensure // switch section is processed correctly. MystResourceType7::drawDataToScreen(); @@ -453,7 +453,10 @@ void MystResourceType8::drawConditionalDataToScreen(uint16 state) { imageToDraw = _subImages[subImageId].wdib; _vm->_gfx->copyImageSectionToScreen(imageToDraw, _subImages[subImageId].rect, _rect); - _vm->_gfx->updateScreen(); + + // Draw to screen + if (update) + _vm->_gfx->updateScreen(); } } |