diff options
author | Kari Salminen | 2010-01-24 18:40:29 +0000 |
---|---|---|
committer | Kari Salminen | 2010-01-24 18:40:29 +0000 |
commit | 865b176b15a6a84c403129e6eac87694ce4d6be0 (patch) | |
tree | aa1305236e804a730e896f7251b86fafb9efb8c2 /engines | |
parent | 650a9b9c49b63b46829dd073ad4092f2f23c6fca (diff) | |
download | scummvm-rg350-865b176b15a6a84c403129e6eac87694ce4d6be0.tar.gz scummvm-rg350-865b176b15a6a84c403129e6eac87694ce4d6be0.tar.bz2 scummvm-rg350-865b176b15a6a84c403129e6eac87694ce4d6be0.zip |
Cine: executePlayerInput: Fix 'No player command is given, left mouse button is down, right mouse button is up'-case for Operation Stealth.
svn-id: r47510
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/various.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index d5fa816647..7f9c13b147 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -959,6 +959,14 @@ uint16 executePlayerInput() { globalVars[VAR_MOUSE_Y_POS] = mouseY; + if (g_cine->getGameType() == Cine::GType_OS) { + if (!mouseY) { + globalVars[VAR_MOUSE_Y_POS]++; + } + globalVars[VAR_MOUSE_X_POS_2ND] = globalVars[VAR_MOUSE_X_POS]; + globalVars[VAR_MOUSE_Y_POS_2ND] = globalVars[VAR_MOUSE_X_POS]; + } + objIdx = getObjectUnderCursor(mouseX, mouseY); if (objIdx != -1) { |