aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-02-23 14:52:07 +0000
committerTorbjörn Andersson2006-02-23 14:52:07 +0000
commit7b25fa0bd400a14d13d2926663b19277fb1f16eb (patch)
tree9d33695509d1013c5d350843d19b804914217e47
parentf4c9c4f4d730e719360a468dc8d92c0266b0da9b (diff)
downloadscummvm-rg350-7b25fa0bd400a14d13d2926663b19277fb1f16eb.tar.gz
scummvm-rg350-7b25fa0bd400a14d13d2926663b19277fb1f16eb.tar.bz2
scummvm-rg350-7b25fa0bd400a14d13d2926663b19277fb1f16eb.zip
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. svn-id: r20828
-rw-r--r--engines/simon/simon.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index 2e17a725c1..85d27cf134 100644
--- a/engines/simon/simon.cpp
+++ b/engines/simon/simon.cpp
@@ -4153,13 +4153,21 @@ void SimonEngine::delay(uint amount) {
_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