summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-overview.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-12-05 23:59:39 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-12-05 23:59:39 +0100
commitcb83e58ac711dec9e3a4da2bfdf30a62db51d19e (patch)
tree5190025122dd8a890e84aa879b40f77cb49cd1db /crawl-ref/source/dgn-overview.cc
parent6a4c7ca7227bdf0c0f9b492c95d0cc0c970341e4 (diff)
downloadcrawl-ref-cb83e58ac711dec9e3a4da2bfdf30a62db51d19e.tar.gz
crawl-ref-cb83e58ac711dec9e3a4da2bfdf30a62db51d19e.zip
Fix false annotations being created in the Abyss.
Diffstat (limited to 'crawl-ref/source/dgn-overview.cc')
-rw-r--r--crawl-ref/source/dgn-overview.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/dgn-overview.cc b/crawl-ref/source/dgn-overview.cc
index e5db463995..4ed8b5b51d 100644
--- a/crawl-ref/source/dgn-overview.cc
+++ b/crawl-ref/source/dgn-overview.cc
@@ -108,10 +108,14 @@ bool move_notable_thing(const coord_def& orig, const coord_def& dest)
level_pos pos1(level_id::current(), orig);
level_pos pos2(level_id::current(), dest);
- shops_present[pos2] = shops_present[pos1];
- altars_present[pos2] = altars_present[pos1];
- portals_present[pos2] = portals_present[pos1];
- portal_notes[pos2] = portal_notes[pos1];
+ if (shops_present.count(pos1))
+ shops_present[pos2] = shops_present[pos1];
+ if (altars_present.count(pos1))
+ altars_present[pos2] = altars_present[pos1];
+ if (portals_present.count(pos1))
+ portals_present[pos2] = portals_present[pos1];
+ if (portal_notes.count(pos1))
+ portal_notes[pos2] = portal_notes[pos1];
unnotice_feature(pos1);