aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/events.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-12-21 15:59:05 +0000
committerFilippos Karapetis2008-12-21 15:59:05 +0000
commitd0f4f97ea9d8ded6280c2c023a55febecabef5d2 (patch)
tree17d9fb42b1a80ba38270bf11b03bfa35b03c6daf /engines/saga/events.cpp
parente11c17a005a1efb1be077ceb856c48446e11d95c (diff)
downloadscummvm-rg350-d0f4f97ea9d8ded6280c2c023a55febecabef5d2.tar.gz
scummvm-rg350-d0f4f97ea9d8ded6280c2c023a55febecabef5d2.tar.bz2
scummvm-rg350-d0f4f97ea9d8ded6280c2c023a55febecabef5d2.zip
Cleaned up the mess with game IDs and game types: removed game types, reduced the game IDs and added game features where necessary
svn-id: r35467
Diffstat (limited to 'engines/saga/events.cpp')
-rw-r--r--engines/saga/events.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/saga/events.cpp b/engines/saga/events.cpp
index a95a73c293..78da66d993 100644
--- a/engines/saga/events.cpp
+++ b/engines/saga/events.cpp
@@ -338,7 +338,7 @@ int Events::handleOneShot(Event *event) {
if (event->param == kEvPSetPalette) {
PalEntry *palPointer;
- if (_vm->getGameType() == GType_IHNM) {
+ if (_vm->getGameId() == GID_IHNM) {
if (_vm->_spiritualBarometer > 255)
_vm->_gfx->setPaletteColor(kIHNMColorPortrait, 0xff, 0xff, 0xff);
else
@@ -507,12 +507,14 @@ int Events::handleOneShot(Event *event) {
break;
case kEventSetNormalCursor:
// in ITE and IHNM demo there is just one cursor
- if (_vm->getGameType() == GType_IHNM && _vm->getGameId() != GID_IHNM_DEMO)
+ // ITE never makes this call
+ if (!(_vm->getFeatures() & GF_IHNM_DEMO))
_vm->_gfx->setCursor(kCursorNormal);
break;
case kEventSetBusyCursor:
// in ITE and IHNM demo there is just one cursor
- if (_vm->getGameType() == GType_IHNM && _vm->getGameId() != GID_IHNM_DEMO)
+ // ITE never makes this call
+ if (!(_vm->getFeatures() & GF_IHNM_DEMO))
_vm->_gfx->setCursor(kCursorBusy);
break;
default: