diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-18 14:59:13 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-18 14:59:13 +0000 |
commit | cb1d25a9a8371edb63bc1721b616df12c4e790c2 (patch) | |
tree | 08768aa7dae105247c3a8acf30b4537b7aa93747 /crawl-ref/source/travel.cc | |
parent | 564115dd01a10153ad421df67b1b008fe514cf0c (diff) | |
download | crawl-ref-cb1d25a9a8371edb63bc1721b616df12c4e790c2.tar.gz crawl-ref-cb1d25a9a8371edb63bc1721b616df12c4e790c2.zip |
Use the correct portal description in explore stop messages.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7475 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 7a4c4724ea..9d11cdb4b9 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -4030,9 +4030,9 @@ explore_discoveries::explore_discoveries() } std::string explore_discoveries::cleaned_feature_description( - dungeon_feature_type grid) const + const coord_def &pos) const { - std::string s = lowercase_first(feature_description(grid)); + std::string s = lowercase_first(feature_description(pos)); if (s.length() && s[s.length() - 1] == '.') s.erase(s.length() - 1); if (s.find("a ") != std::string::npos) @@ -4066,13 +4066,13 @@ void explore_discoveries::found_feature(const coord_def &pos, } else if (is_stair(grid) && ES_stair) { - const named_thing<int> stair(cleaned_feature_description(grid), 1); + const named_thing<int> stair(cleaned_feature_description(pos), 1); add_stair(stair); es_flags |= ES_STAIR; } else if (grid_is_portal(grid) && ES_portal) { - const named_thing<int> portal(cleaned_feature_description(grid), 1); + const named_thing<int> portal(cleaned_feature_description(pos), 1); add_stair(portal); es_flags |= ES_PORTAL; } @@ -4080,7 +4080,7 @@ void explore_discoveries::found_feature(const coord_def &pos, && ES_altar && !player_in_branch(BRANCH_ECUMENICAL_TEMPLE)) { - const named_thing<int> altar(cleaned_feature_description(grid), 1); + const named_thing<int> altar(cleaned_feature_description(pos), 1); if (!merge_feature(altars, altar)) altars.push_back(altar); es_flags |= ES_ALTAR; |