diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-09 13:09:30 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-09 13:09:30 +0000 |
commit | 8f7a0fd5e1e4217ce5443eb4d488ac3d4010dde0 (patch) | |
tree | d29ec59de73984b0e39af01981109d033fee23c8 /crawl-ref | |
parent | 052f906cf8253d9586caf5e735b1677a490833bb (diff) | |
download | crawl-ref-8f7a0fd5e1e4217ce5443eb4d488ac3d4010dde0.tar.gz crawl-ref-8f7a0fd5e1e4217ce5443eb4d488ac3d4010dde0.zip |
Rename init_new_level to something more descriptive.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@947 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/acr.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/debug.cc | 5 | ||||
-rw-r--r-- | crawl-ref/source/misc.cc | 9 | ||||
-rw-r--r-- | crawl-ref/source/misc.h | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 3ae01782ac..e46740235e 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -2798,7 +2798,7 @@ static bool initialise(void) new_level(); update_turn_count(); - init_new_level(false); + trackers_init_new_level(false); // Mark items in inventory as of unknown origin. origin_set_inventory(origin_set_unknown); diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index c21d0e9eb7..53fc10ae2c 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -677,8 +677,9 @@ static void wizard_go_to_level(const level_pos &pos) save_game_state(); new_level(); viewwindow(1, true); - // Tell the travel code that we're now on a new level - init_new_level(true); + + // Tell stash-tracker and travel that we've changed levels. + trackers_init_new_level(true); } void wizard_interlevel_travel() diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index b3dd260423..ab6724342b 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -676,8 +676,9 @@ void up_stairs(void) if (you.skills[SK_TRANSLOCATIONS] > 0 && !allow_control_teleport( true )) 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(true); + // Tell stash-tracker and travel that we've changed levels. + trackers_init_new_level(true); + if (collect_travel_data) { // Update stair information for the stairs we just ascended, and the @@ -1045,7 +1046,7 @@ void down_stairs( bool remove_stairs, int old_level, int force_stair ) if (you.skills[SK_TRANSLOCATIONS] > 0 && !allow_control_teleport( true )) mpr( "You sense a powerful magical force warping space.", MSGCH_WARN ); - init_new_level(true); + trackers_init_new_level(true); if (collect_travel_data) { // Update stair information for the stairs we just descended, and the @@ -1079,7 +1080,7 @@ void down_stairs( bool remove_stairs, int old_level, int force_stair ) } } // end down_stairs() -void init_new_level(bool transit) +void trackers_init_new_level(bool transit) { travel_init_new_level(); if (transit) diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h index 10d168a06c..20efd35732 100644 --- a/crawl-ref/source/misc.h +++ b/crawl-ref/source/misc.h @@ -88,7 +88,7 @@ void new_level(void); std::string level_description_string(); -void init_new_level(bool transit); +void trackers_init_new_level(bool transit); // last updated 12may2000 {dlb} /* *********************************************************************** |