aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-07-07 06:23:09 +0000
committerPaul Gilbert2009-07-07 06:23:09 +0000
commit3dd21aa218fe0f775fe3e1c1f208d7cd2bb3689a (patch)
treed4e85b7453d23763ea3b205c741d504ba5a80a20 /engines
parent7cc82cfea16b97a3660fea524c3b54aecbff8755 (diff)
downloadscummvm-rg350-3dd21aa218fe0f775fe3e1c1f208d7cd2bb3689a.tar.gz
scummvm-rg350-3dd21aa218fe0f775fe3e1c1f208d7cd2bb3689a.tar.bz2
scummvm-rg350-3dd21aa218fe0f775fe3e1c1f208d7cd2bb3689a.zip
Fix to the return values of the Op_GetMouseButton library function now allows the game's "Fisticuffs path" to work properly
svn-id: r42199
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/function.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 0f0113afbf..fb67cef91c 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -709,9 +709,7 @@ int16 Op_GetMouseButton(void) {
getMouseStatus(&dummy, &mouseX, &mouseButton, &mouseY);
- if (mouseButton)
- return 1;
- return 0;
+ return mouseButton;
}
int16 Op_AddCell(void) {