diff options
author | Arnaud Boutonné | 2009-10-23 22:00:51 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2009-10-23 22:00:51 +0000 |
commit | 553555445523ab8041883180d6879c8b3f488f5d (patch) | |
tree | 1526ab0cc142199a851f636d325ae08ce5a49827 /engines | |
parent | ee9273b3c0a975ff22b6b9fa306eb013e9646d31 (diff) | |
download | scummvm-rg350-553555445523ab8041883180d6879c8b3f488f5d.tar.gz scummvm-rg350-553555445523ab8041883180d6879c8b3f488f5d.tar.bz2 scummvm-rg350-553555445523ab8041883180d6879c8b3f488f5d.zip |
Gob - Add a workaround for gob3 Sofa bug #2867294. It's now possible to exit the animation by clicking
svn-id: r45353
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/util.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp index d51cbad6b3..aaba222654 100644 --- a/engines/gob/util.cpp +++ b/engines/gob/util.cpp @@ -141,8 +141,13 @@ void Util::processInput(bool scroll) { y -= _vm->_video->_screenDeltaY; _vm->_util->setMousePos(x, y); - _vm->_game->wantScroll(x, y); + + // WORKAROUND: + // Force a check of the mouse in order to fix the sofa bug. This apply only for Gob3, and only + // in the impacted TOT file so that the second screen animation is not broken. + if ((_vm->getGameType() == kGameTypeGob3) && !strncmp(_vm->_game->_curTotFile, "EMAP1008.TOT", 12)) + _vm->_game->evaluateScroll(); } } |