aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2009-06-05 23:08:35 +0000
committerFilippos Karapetis2009-06-05 23:08:35 +0000
commitda36901b0751b9d4faaae30dce230b67d75e04e6 (patch)
treec5a2635467c89590b07aeefe9a84ec3346244222 /engines/sci/engine
parent5f005bf93099def8c9fb1bb2eb61df600b0f0ed5 (diff)
downloadscummvm-rg350-da36901b0751b9d4faaae30dce230b67d75e04e6.tar.gz
scummvm-rg350-da36901b0751b9d4faaae30dce230b67d75e04e6.tar.bz2
scummvm-rg350-da36901b0751b9d4faaae30dce230b67d75e04e6.zip
Cleanup
svn-id: r41202
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index fc23e4f6ef..1e0e675603 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -304,7 +304,7 @@ reg_t kSetCursor(EngineState *s, int funct_nr, int argc, reg_t *argv) {
switch (argc) {
case 1 :
if (s->_version < SCI_VERSION_1_1) {
- if (SKPV(0) == 0 || SKPV(0) == 1 || SKPV(0) == -1) {
+ if (SKPV(0) <= 1) {
// Newer (SCI1.1) semantics: show/hide cursor
g_system->showMouse(SKPV(0) != 0);
} else {
@@ -329,7 +329,7 @@ reg_t kSetCursor(EngineState *s, int funct_nr, int argc, reg_t *argv) {
// this would open the menu on top. LSL5 is an exception, as the game can open
// the menu when the player presses a button during the intro, but the cursor is
// not placed on (x, 0) or (x, 1)
- if (SKPV(1) == 0 || SKPV(1) == 1 || SKPV(1) == -1) {
+ if (SKPV(1) <= 1) {
GFX_ASSERT(gfxop_set_pointer_cursor(s->gfx_state,
SKPV(1) == 0 ? GFXOP_NO_POINTER : SKPV(0)));
} else { // newer (SCI1.1) semantics: set pointer position