[Scummvm-cvs-logs] SF.net SVN: scummvm: [20828] scummvm/trunk/engines/simon/simon.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Feb 23 06:53:05 CET 2006


Revision: 20828
Author:   eriktorbjorn
Date:     2006-02-23 06:52:07 -0800 (Thu, 23 Feb 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm?rev=20828&view=rev

Log Message:
-----------
In Feeble Files, mouse clicks are recorded in _bitArray[] as well. I was hoping
that this would make a difference for the Oracle, but apparently not.

Modified Paths:
--------------
    scummvm/trunk/engines/simon/simon.cpp
Modified: scummvm/trunk/engines/simon/simon.cpp
===================================================================
--- scummvm/trunk/engines/simon/simon.cpp	2006-02-23 11:29:37 UTC (rev 20827)
+++ scummvm/trunk/engines/simon/simon.cpp	2006-02-23 14:52:07 UTC (rev 20828)
@@ -4153,13 +4153,21 @@
 				_sdlMouseY = event.mouse.y;
 				break;
 			case OSystem::EVENT_LBUTTONDOWN:
+				if (getGameType() == GType_FF)
+					_bitArray[5] |= 0x0200;
 				_leftButtonDown++;
 #if defined (_WIN32_WCE) || defined(PALMOS_MODE)
 				_sdlMouseX = event.mouse.x;
 				_sdlMouseY = event.mouse.y;
 #endif
 				break;
+			case OSystem::EVENT_LBUTTONUP:
+				if (getGameType() == GType_FF)
+					_bitArray[5] &= ~0x0200;
+				break;
 			case OSystem::EVENT_RBUTTONDOWN:
+				if (getGameType() == GType_FF)
+					_bitArray[5] &= ~0x1000;
 				if (getGameType() == GType_SIMON2 || getGameType() == GType_FF)
 					_skipSpeech = true;
 				else







More information about the Scummvm-git-logs mailing list