aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormd52011-02-23 13:36:31 +0200
committermd52011-02-23 13:36:31 +0200
commit5c9b1e6cbd254923e795495a992146362f49679a (patch)
tree35a968d0b1d9fb96399b79ce99b638ecc86fbebc
parenta01395bb457bd572cdaba824ef4ddd42d8b18766 (diff)
downloadscummvm-rg350-5c9b1e6cbd254923e795495a992146362f49679a.tar.gz
scummvm-rg350-5c9b1e6cbd254923e795495a992146362f49679a.tar.bz2
scummvm-rg350-5c9b1e6cbd254923e795495a992146362f49679a.zip
SCI: Added a workaround for bug #3036763 - "HOYLE3 Demo: Bad Dialog Priorities"
-rw-r--r--engines/sci/graphics/animate.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp
index f3470fb1f6..dd84a9a105 100644
--- a/engines/sci/graphics/animate.cpp
+++ b/engines/sci/graphics/animate.cpp
@@ -352,7 +352,14 @@ void GfxAnimate::update() {
it->signal &= ~(kSignalViewUpdated | kSignalNoUpdate);
} else if (it->signal & kSignalStopUpdate) {
it->signal &= ~kSignalStopUpdate;
- it->signal |= kSignalNoUpdate;
+ if (g_sci->getGameId() == GID_HOYLE3 && g_sci->isDemo()) {
+ // WORKAROUND: The demo of Hoyle 3 doesn't seem to set this
+ // flag in this case. Not setting this fixes a large number
+ // of incorrect animate entries being drawn on top of dialog
+ // boxes (bug #3036763)
+ } else {
+ it->signal |= kSignalNoUpdate;
+ }
}
}