aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-05-18 20:28:08 +0000
committerFlorian Kagerer2009-05-18 20:28:08 +0000
commitd66365f376f2939c53243f58f745d853ecd708cd (patch)
treec75e35c4c4ad4854e758f213dd7374327680c3be /engines/kyra/lol.cpp
parent68b3cc89aed973640a5be3b394cf0effeff8b9c5 (diff)
downloadscummvm-rg350-d66365f376f2939c53243f58f745d853ecd708cd.tar.gz
scummvm-rg350-d66365f376f2939c53243f58f745d853ecd708cd.tar.bz2
scummvm-rg350-d66365f376f2939c53243f58f745d853ecd708cd.zip
LOL: fixed automap
svn-id: r40701
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r--engines/kyra/lol.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 31a25895a5..21b44f99f6 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -3370,7 +3370,7 @@ void LoLEngine::displayAutomap() {
_screen->fadePalette(_screen->getPalette(3), 10);
_smoothScrollTimer = _system->getMillis() + 8 * _tickLength;
- while (!exitAutomap) {
+ while (!exitAutomap && !shouldQuit()) {
if (_mapUpdateNeeded) {
drawMapPage(2);
_screen->copyPage(2, 0);
@@ -3660,10 +3660,8 @@ void LoLEngine::automapForwardButton() {
if (i == _currentMapLevel)
return;
- for (int l = 0; l < 11; l++) {
+ for (int l = 0; l < 11; l++)
_defaultLegendData[l].enable = false;
- _defaultLegendData[l].shapeIndex = 255;
- }
_currentMapLevel = i;
loadLevelWallData(i, false);
@@ -3679,10 +3677,8 @@ void LoLEngine::automapBackButton() {
if (i == _currentMapLevel)
return;
- for (int l = 0; l < 11; l++) {
+ for (int l = 0; l < 11; l++)
_defaultLegendData[l].enable = false;
- _defaultLegendData[l].shapeIndex = 255;
- }
_currentMapLevel = i;
loadLevelWallData(i, false);