summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/overmap.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-12 19:53:45 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-12 19:53:45 +0000
commit4c1860113f640efeb503505542393f3dccdd5060 (patch)
treee28485e52508608a7823fa389f2354b44d717a06 /crawl-ref/source/overmap.cc
parent170c1de4d2bc1b996f11cffdec0fc49cfe71c388 (diff)
downloadcrawl-ref-4c1860113f640efeb503505542393f3dccdd5060.tar.gz
crawl-ref-4c1860113f640efeb503505542393f3dccdd5060.zip
Tweaked stash-tracker so that greedy explore works in Pandemonium.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@621 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/overmap.cc')
-rw-r--r--crawl-ref/source/overmap.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/overmap.cc b/crawl-ref/source/overmap.cc
index 9a55761e60..ab61669d1c 100644
--- a/crawl-ref/source/overmap.cc
+++ b/crawl-ref/source/overmap.cc
@@ -385,7 +385,7 @@ std::string overview_description_string()
void unnotice_labyrinth_portal()
{
- level_pos curpos(level_id::get_current_level_id());
+ level_pos curpos(level_id::current());
// XXX Is there really no better way to do this?
curpos.pos.x = you.x_pos;
curpos.pos.y = you.y_pos;
@@ -473,7 +473,7 @@ void seen_staircase( unsigned char which_staircase, const coord_def& pos )
ASSERT(which_branch != BRANCH_MAIN_DUNGEON);
- stair_level[which_branch] = level_id::get_current_level_id();
+ stair_level[which_branch] = level_id::current();
}
// if player has seen an altar; record it
@@ -483,14 +483,14 @@ void seen_altar( god_type god, const coord_def& pos )
if ( you.level_type != LEVEL_DUNGEON )
return;
- level_pos where(level_id::get_current_level_id(), pos);
+ level_pos where(level_id::current(), pos);
altars_present[where] = god;
}
void unnotice_altar()
{
const coord_def pos(you.x_pos, you.y_pos);
- const level_pos curpos(level_id::get_current_level_id(), pos);
+ const level_pos curpos(level_id::current(), pos);
// Hmm, what happens when erasing a nonexistent key directly?
if (altars_present.find(curpos) != altars_present.end())
altars_present.erase(curpos);
@@ -519,7 +519,7 @@ void seen_other_thing( unsigned char which_thing, const coord_def& pos )
if ( you.level_type != LEVEL_DUNGEON ) // can't record in abyss or pan.
return;
- level_pos where(level_id::get_current_level_id(), pos);
+ level_pos where(level_id::current(), pos);
switch ( which_thing )
{