From 553555445523ab8041883180d6879c8b3f488f5d Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Fri, 23 Oct 2009 22:00:51 +0000 Subject: Gob - Add a workaround for gob3 Sofa bug #2867294. It's now possible to exit the animation by clicking svn-id: r45353 --- engines/gob/util.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/gob/util.cpp') 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(); } } -- cgit v1.2.3