[Scummvm-cvs-logs] SF.net SVN: scummvm:[45353] scummvm/trunk/engines/gob/util.cpp

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Sat Oct 24 00:00:52 CEST 2009


Revision: 45353
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45353&view=rev
Author:   strangerke
Date:     2009-10-23 22:00:51 +0000 (Fri, 23 Oct 2009)

Log Message:
-----------
Gob - Add a workaround for gob3 Sofa bug #2867294. It's now possible to exit the animation by clicking

Modified Paths:
--------------
    scummvm/trunk/engines/gob/util.cpp

Modified: scummvm/trunk/engines/gob/util.cpp
===================================================================
--- scummvm/trunk/engines/gob/util.cpp	2009-10-23 21:48:28 UTC (rev 45352)
+++ scummvm/trunk/engines/gob/util.cpp	2009-10-23 22:00:51 UTC (rev 45353)
@@ -141,8 +141,13 @@
 		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();
 	}
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list