aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-28 23:32:28 +0000
committerFilippos Karapetis2009-10-28 23:32:28 +0000
commit8150fc07bc8b997a0d61332a5d9ebc31e4acdb5d (patch)
tree2ab52a9157d2bcfada961d6e2efe96774cadc16b /engines/sci/engine
parent2d9d9bca13244b398c08fe2980e130cb205b57f6 (diff)
downloadscummvm-rg350-8150fc07bc8b997a0d61332a5d9ebc31e4acdb5d.tar.gz
scummvm-rg350-8150fc07bc8b997a0d61332a5d9ebc31e4acdb5d.tar.bz2
scummvm-rg350-8150fc07bc8b997a0d61332a5d9ebc31e4acdb5d.zip
Added a workaround for the casino door in LSL1
svn-id: r45494
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index cba042f472..21da6857dc 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -484,6 +484,13 @@ reg_t kBaseSetter(EngineState *s, int argc, reg_t *argv) {
s->_gui->baseSetter(object);
+ // WORKAROUND for a problem in LSL1VGA. This allows the casino door to be opened,
+ // till the actual problem is found
+ if (s->_gameName == "lsl1sci" && s->currentRoomNumber() == 300) {
+ int top = GET_SEL32V(s->_segMan, object, brTop);
+ PUT_SEL32V(s->_segMan, object, brTop, top + 2);
+ }
+
return s->r_acc;
}