aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2010-08-25 09:28:29 +0000
committerPaul Gilbert2010-08-25 09:28:29 +0000
commit5e66329117625f53c9a9c0cb1e55d01c585237f5 (patch)
tree1ec58049fed430e4a23e1bdc0332850fcc688362 /engines
parent4368d3c5749faadb89262dfa869d9a9d3b60a4c8 (diff)
downloadscummvm-rg350-5e66329117625f53c9a9c0cb1e55d01c585237f5.tar.gz
scummvm-rg350-5e66329117625f53c9a9c0cb1e55d01c585237f5.tar.bz2
scummvm-rg350-5e66329117625f53c9a9c0cb1e55d01c585237f5.zip
LURE: Workaround for bug #3047234 in English EGA version
svn-id: r52378
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/scripts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp
index 41a09e0d1d..20758466ad 100644
--- a/engines/lure/scripts.cpp
+++ b/engines/lure/scripts.cpp
@@ -1297,6 +1297,11 @@ bool HotspotScript::execute(Hotspot *h) {
default:
// Set the animation frame number
+
+ // WORKAROUND: In Lure English EGA, the apparatus in room #30 can be set with an invalid frame number
+ if ((h->hotspotId() == 1059) && (opcode >= h->numFrames()))
+ opcode = h->numFrames() - 1;
+
debugC(ERROR_DETAILED, kLureDebugScripts, "SET FRAME NUMBER = %d", opcode);
h->setFrameNumber(opcode);