diff options
author | Florian Kagerer | 2009-03-08 02:17:14 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-03-08 02:17:14 +0000 |
commit | e23fd08dfbdac9d6eedb78813d3504eeccba31a5 (patch) | |
tree | ba0a0c81477f8327a2b8275e27cf17fecc12b3da /engines/kyra/gui_lol.cpp | |
parent | cc89a46a0ef8b9bd62e69ab0d6a8c1e28bc46781 (diff) | |
download | scummvm-rg350-e23fd08dfbdac9d6eedb78813d3504eeccba31a5.tar.gz scummvm-rg350-e23fd08dfbdac9d6eedb78813d3504eeccba31a5.tar.bz2 scummvm-rg350-e23fd08dfbdac9d6eedb78813d3504eeccba31a5.zip |
LOL: fixed bug reported by MD5 (crashes and freezes caused by calls to non-existent sub scripts)
svn-id: r39209
Diffstat (limited to 'engines/kyra/gui_lol.cpp')
-rw-r--r-- | engines/kyra/gui_lol.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp index 68cd379d5c..a70935e43d 100644 --- a/engines/kyra/gui_lol.cpp +++ b/engines/kyra/gui_lol.cpp @@ -34,26 +34,26 @@ namespace Kyra { void LoLEngine::gui_drawPlayField() { _screen->loadBitmap("PLAYFLD.CPS", 3, 3, 0); - if (_screen->_drawGuiFlag & 0x4000) { + if (_gameFlags[15] & 0x4000) { // copy compass shape static const int cx[] = { 112, 152, 224 }; _screen->copyRegion(cx[_lang], 32, 288, 0, 32, 32, 2, 2, Screen::CR_NO_P_CHECK); _compassDirection = -1; } - if (_screen->_drawGuiFlag & 0x1000) + if (_gameFlags[15] & 0x1000) // draw automap book _screen->drawShape(2, _gameShapes[78], 289, 32, 0, 0); int cp = _screen->setCurPage(2); - if (_screen->_drawGuiFlag & 0x2000) { + if (_gameFlags[15] & 0x2000) { gui_drawScroll(); } else { _selectedSpell = 0; } - if (_screen->_drawGuiFlag & 0x800) + if (_gameFlags[15] & 0x800) resetLampStatus(); gui_drawScene(2); @@ -537,7 +537,7 @@ void LoLEngine::gui_drawMoneyBox(int pageNum) { } void LoLEngine::gui_drawCompass() { - if (!(_screen->_drawGuiFlag & 0x4000)) + if (!(_gameFlags[15] & 0x4000)) return; if (_compassDirection == -1) { @@ -595,7 +595,7 @@ void LoLEngine::gui_toggleButtonDisplayMode(int shapeIndex, int mode) { static const int16 buttonX[] = { 0x0056, 0x0128, 0x000C, 0x0021, 0x0122, 0x000C, 0x0021, 0x0036, 0x000C, 0x0021, 0x0036 }; static const int16 buttonY[] = { 0x00B4, 0x00B4, 0x00B4, 0x00B4, 0x0020, 0x0084, 0x0084, 0x0084, 0x0096, 0x0096, 0x0096 }; - if (shapeIndex == 78 && !(_screen->_drawGuiFlag & 0x1000)) + if (shapeIndex == 78 && !(_gameFlags[15] & 0x1000)) return; if (_hideControls && _hideInventory) @@ -808,7 +808,7 @@ void LoLEngine::gui_enableDefaultPlayfieldButtons() { gui_initCharacterControlButtons(29, 0); gui_initCharacterControlButtons(25, 33); - if (_screen->_drawGuiFlag & 0x2000) + if (_gameFlags[15] & 0x2000) gui_initMagicScrollButtons(); } |