aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2007-09-15 03:08:58 +0000
committerFilippos Karapetis2007-09-15 03:08:58 +0000
commitfef707a2dd9755d25161a5dfa0db70b463bc7b08 (patch)
treed42f851e77a09dd7c9ee0a0f5015986d224e7a31 /engines/saga
parent1fa1b64984312844a34c742ea5a1cc3304736878 (diff)
downloadscummvm-rg350-fef707a2dd9755d25161a5dfa0db70b463bc7b08.tar.gz
scummvm-rg350-fef707a2dd9755d25161a5dfa0db70b463bc7b08.tar.bz2
scummvm-rg350-fef707a2dd9755d25161a5dfa0db70b463bc7b08.zip
The right button verb in IHNM will no longer be invalid for some hitzones (e.g. "Quit game the door")
svn-id: r28903
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/saga/script.cpp b/engines/saga/script.cpp
index 5153e9ffd2..49071ecc60 100644
--- a/engines/saga/script.cpp
+++ b/engines/saga/script.cpp
@@ -831,6 +831,10 @@ void Script::whichObject(const Point& mousePoint) {
if (newRightButtonVerb >= getVerbType(kVerbOptions)) {
newRightButtonVerb = getVerbType(kVerbNone);
}
+ } else {
+ if (newRightButtonVerb >= getVerbType(kVerbOptions)) {
+ newRightButtonVerb = getVerbType(kVerbWalkTo);
+ }
}
if ((_currentVerb == getVerbType(kVerbTalkTo)) || ((_currentVerb == getVerbType(kVerbGive)) && _firstObjectSet)) {