diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 06:27:58 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 06:27:58 +0000 |
commit | 922cba628d3d6377574a90c7a817c10d84ed7f85 (patch) | |
tree | ae983cf4a6d1e2dc85fd5c58754f2ec06d25afae /crawl-ref/source/travel.cc | |
parent | 7c2f45cfd1fed2a890780bdf2b7e3d1cd105dfb5 (diff) | |
download | crawl-ref-922cba628d3d6377574a90c7a817c10d84ed7f85.tar.gz crawl-ref-922cba628d3d6377574a90c7a817c10d84ed7f85.zip |
"stashes" was both a global variable and a member variable... confusing!
Renamed both of them.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3827 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index d308d9cdf3..68470edd73 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -847,7 +847,7 @@ static bool is_valid_explore_target(int x, int y) if (you.running == RMODE_EXPLORE_GREEDY) { - LevelStashes *lev = stashes.find_current_level(); + LevelStashes *lev = StashTrack.find_current_level(); return (lev && lev->needs_visit(x, y)); } @@ -1118,7 +1118,7 @@ command_type travel() if (grd[you.x_pos][you.y_pos] == DNGN_ENTER_SHOP && you.running == RMODE_EXPLORE_GREEDY) { - LevelStashes *lev = stashes.find_current_level(); + LevelStashes *lev = StashTrack.find_current_level(); if (lev && lev->shop_needs_visit(you.x_pos, you.y_pos)) { you.running = 0; @@ -1178,7 +1178,7 @@ command_type travel() if (new_x == you.running.x && new_y == you.running.y) { - const LevelStashes *lev = stashes.find_current_level(); + const LevelStashes *lev = StashTrack.find_current_level(); if (lev && lev->needs_visit(new_x, new_y) && !lev->shop_needs_visit(new_x, new_y)) { @@ -1463,7 +1463,7 @@ const coord_def travel_pathfind::pathfind(run_mode_type rmode) (rmode == RMODE_EXPLORE_GREEDY && can_autopickup()); if (!ls && (annotate_map || need_for_greed)) - ls = stashes.find_current_level(); + ls = StashTrack.find_current_level(); next_travel_move.reset(); @@ -4022,7 +4022,7 @@ void explore_discoveries::found_item(const coord_def &pos, const item_def &i) { // The things we need to do... if (!current_level) - current_level = stashes.find_current_level(); + current_level = StashTrack.find_current_level(); if (current_level && !(Options.explore_stop & ES_GREEDY_ITEM) |