aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2008-02-23 13:36:40 +0000
committerFilippos Karapetis2008-02-23 13:36:40 +0000
commit638e23f37c03d235a2e87f84f5ca70176f842bb9 (patch)
treedcd72fa2ffdec82641da03d8339a99b3660fc4d0 /engines/saga
parent93753d2f3bbd36e92bf8b1bc46f8a1775a01afa6 (diff)
downloadscummvm-rg350-638e23f37c03d235a2e87f84f5ca70176f842bb9.tar.gz
scummvm-rg350-638e23f37c03d235a2e87f84f5ca70176f842bb9.tar.bz2
scummvm-rg350-638e23f37c03d235a2e87f84f5ca70176f842bb9.zip
Fix for bug #1900258 - "ITE: Glitch when looking at the map while at the docks"
svn-id: r30919
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/palanim.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/saga/palanim.cpp b/engines/saga/palanim.cpp
index b19d2c9fb0..c5129fcf06 100644
--- a/engines/saga/palanim.cpp
+++ b/engines/saga/palanim.cpp
@@ -30,6 +30,7 @@
#include "saga/events.h"
#include "saga/palanim.h"
+#include "saga/interface.h"
namespace Saga {
@@ -170,7 +171,10 @@ int PalAnim::cycleStep(int vectortime) {
}
}
- _vm->_gfx->setPalette(pal);
+ // Don't cycle the palette when the map is open
+ // Fixes bug #1900258 - "ITE: Glitch when looking at the map while at the docks"
+ if (_vm->_interface->getMode() != kPanelMap)
+ _vm->_gfx->setPalette(pal);
event.type = kEvTOneshot;
event.code = kPalAnimEvent;