summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/overmap.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-03 18:46:23 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-03 18:46:23 +0000
commitbcfca21ad67956a47a2ac5f616943567334f7c0b (patch)
tree7f03d2120ba030742b3bd71d49be056cfdf19df5 /crawl-ref/source/overmap.cc
parentcb9d4a1c331dbd0439a21a00e4573f315b5ce507 (diff)
downloadcrawl-ref-bcfca21ad67956a47a2ac5f616943567334f7c0b.tar.gz
crawl-ref-bcfca21ad67956a47a2ac5f616943567334f7c0b.zip
Fix labyrinths being seen in overview even after they're visited.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@546 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/overmap.cc')
-rw-r--r--crawl-ref/source/overmap.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/overmap.cc b/crawl-ref/source/overmap.cc
index e3cb754526..d83f87cbb1 100644
--- a/crawl-ref/source/overmap.cc
+++ b/crawl-ref/source/overmap.cc
@@ -282,6 +282,18 @@ std::string overview_description_string()
return disp;
}
+void unnotice_labyrinth_portal()
+{
+ level_pos curpos(level_id::get_current_level_id());
+ // XXX Is there really no better way to do this?
+ curpos.pos.x = you.x_pos;
+ curpos.pos.y = you.y_pos;
+ if ( portals_present.find(curpos) != portals_present.end() )
+ portals_present.erase(curpos);
+ else
+ mprf(MSGCH_DIAGNOSTICS, "Oops - tried to unnotice bad portal.");
+}
+
void display_overmap()
{
std::string disp = overview_description_string();