diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-11 18:36:27 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-11 19:18:13 +0100 |
commit | 2c63f35a7436d26bd8f3e1bafd7096dbf6dc2e8a (patch) | |
tree | 9ad105b2978e6e485897360cea1d47cdc5d8a9dc /crawl-ref/source/exclude.cc | |
parent | f07d3b57527afdb02678406ce6a9bb83a8c6440b (diff) | |
download | crawl-ref-2c63f35a7436d26bd8f3e1bafd7096dbf6dc2e8a.tar.gz crawl-ref-2c63f35a7436d26bd8f3e1bafd7096dbf6dc2e8a.zip |
Implement #2374: Don't prompt for cloud-excluded staircases.
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r-- | crawl-ref/source/exclude.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index 61ba1fb703..e39af5453c 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -372,6 +372,13 @@ int get_exclusion_radius(const coord_def &p) return 0; } +std::string get_exclusion_desc(const coord_def &p) +{ + if (travel_exclude *exc = curr_excludes.get_exclude_root(p)) + return exc->desc; + return ""; +} + #ifdef USE_TILE // update Gmap for squares surrounding exclude centre static void _tile_exclude_gmap_update(const coord_def &p) |