aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-24 17:35:30 +0100
committerEugene Sandulenko2019-12-24 17:35:30 +0100
commite3f22265503a52331057172b05d27d35341b1a30 (patch)
tree41fc894a5e4f30634262e5c60fd6b459b78ab5f3 /engines/director/lingo
parentc47c9eaad49974a5dbb59b611dea53f44714d508 (diff)
downloadscummvm-rg350-e3f22265503a52331057172b05d27d35341b1a30.tar.gz
scummvm-rg350-e3f22265503a52331057172b05d27d35341b1a30.tar.bz2
scummvm-rg350-e3f22265503a52331057172b05d27d35341b1a30.zip
DIRECTOR: Support for arbitrary cast resrouce offsets
Diffstat (limited to 'engines/director/lingo')
-rw-r--r--engines/director/lingo/lingo-events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-events.cpp b/engines/director/lingo/lingo-events.cpp
index 691cff0213..56f43fd714 100644
--- a/engines/director/lingo/lingo-events.cpp
+++ b/engines/director/lingo/lingo-events.cpp
@@ -176,8 +176,8 @@ void Lingo::processInputEvent(LEvent event) {
} else if (event == kEventMouseUp) {
// Frame script overrides sprite script
if (!currentFrame->_sprites[spriteId]->_scriptId) {
- processEvent(kEventNone, kSpriteScript, currentFrame->_sprites[spriteId]->_castId + 1024);
- processEvent(event, kSpriteScript, currentFrame->_sprites[spriteId]->_castId + 1024);
+ processEvent(kEventNone, kSpriteScript, currentFrame->_sprites[spriteId]->_castId + score->_castIDoffset);
+ processEvent(event, kSpriteScript, currentFrame->_sprites[spriteId]->_castId + score->_castIDoffset);
} else {
processEvent(kEventNone, kFrameScript, currentFrame->_sprites[spriteId]->_scriptId);
}