diff options
author | Adam Borowski <kilobyte@angband.pl> | 2014-01-03 20:04:00 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2014-01-03 20:04:24 +0100 |
commit | 89b3a041c70613730450eacc423c0fd65ed407ee (patch) | |
tree | 372c078ce1d52aca1ee80c069fa16f792b1aaa60 /crawl-ref/source/viewmap.cc | |
parent | b59eb84e371410463f1613b4c58624fdb6f519be (diff) | |
download | crawl-ref-89b3a041c70613730450eacc423c0fd65ed407ee.tar.gz crawl-ref-89b3a041c70613730450eacc423c0fd65ed407ee.zip |
Fix < > not finding portals and exits on X.
Diffstat (limited to 'crawl-ref/source/viewmap.cc')
-rw-r--r-- | crawl-ref/source/viewmap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/viewmap.cc b/crawl-ref/source/viewmap.cc index 556d82a566..062bdb59f6 100644 --- a/crawl-ref/source/viewmap.cc +++ b/crawl-ref/source/viewmap.cc @@ -279,7 +279,7 @@ static bool _is_feature_fudged(ucs_t feat, const coord_def& where) if (feat == '<') { - if (feat >= DNGN_EXIT_FIRST_PORTAL && feat <= DNGN_EXIT_LAST_PORTAL) + if (grd(where) >= DNGN_EXIT_FIRST_PORTAL && grd(where) <= DNGN_EXIT_LAST_PORTAL) return true; switch (grd(where)) { @@ -298,7 +298,7 @@ static bool _is_feature_fudged(ucs_t feat, const coord_def& where) } else if (feat == '>') { - if (feat >= DNGN_ENTER_FIRST_PORTAL && feat <= DNGN_ENTER_LAST_PORTAL) + if (grd(where) >= DNGN_ENTER_FIRST_PORTAL && grd(where) <= DNGN_ENTER_LAST_PORTAL) return true; switch (grd(where)) { |