summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-12 20:58:53 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-12 20:58:53 +0000
commit4c5606bdd1108251e5c5a4c219ae447e547746d2 (patch)
tree358eab8e935ececd1e249bdc5265964944ba928b /crawl-ref/source/misc.cc
parent4c1860113f640efeb503505542393f3dccdd5060 (diff)
downloadcrawl-ref-4c5606bdd1108251e5c5a4c219ae447e547746d2.tar.gz
crawl-ref-4c5606bdd1108251e5c5a4c219ae447e547746d2.zip
Fixed stash-tracker bugs introduced by the Pan change.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@622 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 56155c14e3..4283560459 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -669,7 +669,7 @@ void up_stairs(void)
mpr( "You sense a powerful magical force warping space.", MSGCH_WARN );
// Tell the travel code that we're now on a new level
- init_new_level();
+ init_new_level(true);
if (collect_travel_data)
{
// Update stair information for the stairs we just ascended, and the
@@ -1109,7 +1109,7 @@ void down_stairs( bool remove_stairs, int old_level, bool force )
if (you.skills[SK_TRANSLOCATIONS] > 0 && !allow_control_teleport( true ))
mpr( "You sense a powerful magical force warping space.", MSGCH_WARN );
- init_new_level();
+ init_new_level(true);
if (collect_travel_data)
{
// Update stair information for the stairs we just descended, and the
@@ -1143,10 +1143,11 @@ void down_stairs( bool remove_stairs, int old_level, bool force )
}
} // end down_stairs()
-void init_new_level()
+void init_new_level(bool transit)
{
travel_init_new_level();
- stash_init_new_level();
+ if (transit)
+ stash_init_new_level();
}
void new_level(void)
@@ -2005,8 +2006,7 @@ bool i_feel_safe()
// Do not attempt to use level_id if level_type != LEVEL_DUNGEON
std::string short_place_name(level_id id)
{
- return short_place_name(
- get_packed_place(id.branch, id.depth, LEVEL_DUNGEON));
+ return id.describe();
}
unsigned short get_packed_place( unsigned char branch, int subdepth,