aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/dialogs/dialogs_spells.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp
index e1a0c22e3e..03e8a491cb 100644
--- a/engines/xeen/dialogs/dialogs_spells.cpp
+++ b/engines/xeen/dialogs/dialogs_spells.cpp
@@ -850,10 +850,9 @@ int Teleport::execute() {
break;
}
- v = map.mazeLookup(pt, map._isOutdoors ? 0xF : 0xFFFF, 0);
+ v = map.mazeLookup(pt, 0, map._isOutdoors ? 0xF : 0xFFFF);
- if ((v != (map._isOutdoors ? 0 : INVALID_CELL)) &&
- (!map._isOutdoors || v == SURFTYPE_DWATER)) {
+ if ((v != (map._isOutdoors ? 0 : INVALID_CELL)) && (!map._isOutdoors || v != SURFTYPE_DWATER)) {
party._mazePosition = pt;
return 1;
} else {