diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-08-22 07:25:57 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-08-22 07:25:57 +0000 |
commit | ae558c387a4ede86cffe8e4654ea6e544863abc1 (patch) | |
tree | 188c43c51fbe8ba5bcdfe5677d542531b79c6a6e /crawl-ref/source/travel.cc | |
parent | 96a447410eabfc50aadc628f4ce27c6cbc4b2353 (diff) | |
download | crawl-ref-ae558c387a4ede86cffe8e4654ea6e544863abc1.tar.gz crawl-ref-ae558c387a4ede86cffe8e4654ea6e544863abc1.zip |
A few small message changes and additions, mostly
concerning portals.
Oh, and portals will now stop travel just like other
interesting features.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2025 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 951f0c5033..efce606277 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -716,6 +716,7 @@ bool prompt_stop_explore(int es_why) #define ES_shop (Options.explore_stop & ES_SHOP) #define ES_stair (Options.explore_stop & ES_STAIR) #define ES_altar (Options.explore_stop & ES_ALTAR) +#define ES_portal (Options.explore_stop & ES_PORTAL) /* * Adds interesting stuf on (x, y) to explore_discoveries. @@ -3709,6 +3710,12 @@ void explore_discoveries::found_feature(const coord_def &pos, 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); + add_stair(portal); + es_flags |= ES_PORTAL; + } else if (is_altar(grid) && ES_altar && !player_in_branch(BRANCH_ECUMENICAL_TEMPLE)) |