aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-05-16 10:35:15 +0000
committerMax Horn2003-05-16 10:35:15 +0000
commit9e5f46e635a8cb6366398f3c4082ee08c1aacde1 (patch)
tree9719ed7dd6bb855b5f92d020e4170429d033daea
parent30d31f6d0354a571aa1e5f43d3a9978f0e149a44 (diff)
downloadscummvm-rg350-9e5f46e635a8cb6366398f3c4082ee08c1aacde1.tar.gz
scummvm-rg350-9e5f46e635a8cb6366398f3c4082ee08c1aacde1.tar.bz2
scummvm-rg350-9e5f46e635a8cb6366398f3c4082ee08c1aacde1.zip
fixed V2 verb scripts
svn-id: r7570
-rw-r--r--scumm/script.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 8ea97bb26e..3784b35bed 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -877,6 +877,16 @@ int Scumm::getVerbEntrypoint(int obj, int entry) {
ptr += 2;
} while (1);
return verboffs + 8 + READ_LE_UINT32(ptr + 1);
+ } if (_features & GF_AFTER_V2) {
+ do {
+ if (!*verbptr)
+ return 0;
+ if (*verbptr == entry || *verbptr == 0xFF)
+ break;
+ verbptr += 2;
+ } while (1);
+
+ return *(verbptr + 1);
} else {
do {
if (!*verbptr)