diff options
author | Paul Gilbert | 2018-04-06 07:09:50 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-06 07:09:50 -0400 |
commit | 70b76dc8deb3f9ac21ad782eba07c8e8dacb6338 (patch) | |
tree | b7b04128e3e353c5c5f3e9283bc63d16efdf3244 /engines/xeen/dialogs/dialogs_spells.cpp | |
parent | 73ad01efb49b966cd26915a025b2a3601d7c93e7 (diff) | |
download | scummvm-rg350-70b76dc8deb3f9ac21ad782eba07c8e8dacb6338.tar.gz scummvm-rg350-70b76dc8deb3f9ac21ad782eba07c8e8dacb6338.tar.bz2 scummvm-rg350-70b76dc8deb3f9ac21ad782eba07c8e8dacb6338.zip |
XEEN: Fix teleporting outdoors
Diffstat (limited to 'engines/xeen/dialogs/dialogs_spells.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 5 |
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 { |