From 865b176b15a6a84c403129e6eac87694ce4d6be0 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Sun, 24 Jan 2010 18:40:29 +0000 Subject: 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 --- engines/cine/various.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/cine') 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) { -- cgit v1.2.3