aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-05-27 23:30:21 +0000
committerFilippos Karapetis2007-05-27 23:30:21 +0000
commit233971ed3199c63813541d45211731900394a617 (patch)
tree4957b5df565e9e03a7c614cdbf6bce26007810a7
parent6d05afa38e611371ef5a2f53940fc4661b1fd424 (diff)
downloadscummvm-rg350-233971ed3199c63813541d45211731900394a617.tar.gz
scummvm-rg350-233971ed3199c63813541d45211731900394a617.tar.bz2
scummvm-rg350-233971ed3199c63813541d45211731900394a617.zip
Made verbs "push" and "swallow" work in IHNM. It's now possible to choose a monitor with Ted
svn-id: r26983
-rw-r--r--engines/saga/script.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/saga/script.cpp b/engines/saga/script.cpp
index f7a5e1c42a..0e478d6937 100644
--- a/engines/saga/script.cpp
+++ b/engines/saga/script.cpp
@@ -358,6 +358,8 @@ int Script::getVerbType(VerbTypes verbType) {
}
}
else {
+ // TODO: This is ugly and needs rewriting, but
+ // it works for now
switch (verbType) {
case kVerbNone:
return kVerbIHNMNone;
@@ -372,13 +374,11 @@ int Script::getVerbType(VerbTypes verbType) {
case kVerbTalkTo:
return kVerbIHNMTalkTo;
case kVerbOpen:
- return -2;
- // return kVerbIHNMSwallow;
+ return kVerbIHNMSwallow;
case kVerbGive:
return kVerbIHNMGive;
case kVerbClose:
- return -2;
- // return kVerbIHNMPush;
+ return kVerbIHNMPush;
case kVerbEnter:
return kVerbIHNMEnter;
case kVerbWalkOnly: