summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exclude.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-01-11 19:05:50 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-01-11 19:18:15 +0100
commit58e99be7d1cc7211d2bd6bb0d4a91fef50d97d70 (patch)
tree321b7bc750a8d5fa471961f064ebd6f394999530 /crawl-ref/source/exclude.cc
parent2c63f35a7436d26bd8f3e1bafd7096dbf6dc2e8a (diff)
downloadcrawl-ref-58e99be7d1cc7211d2bd6bb0d4a91fef50d97d70.tar.gz
crawl-ref-58e99be7d1cc7211d2bd6bb0d4a91fef50d97d70.zip
Don't display cloud exclusions on the Ctrl-O screen.
Just clutters the screen without actually being useful.
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r--crawl-ref/source/exclude.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc
index e39af5453c..46bd2a7454 100644
--- a/crawl-ref/source/exclude.cc
+++ b/crawl-ref/source/exclude.cc
@@ -8,6 +8,7 @@
#include "exclude.h"
#include <algorithm>
+#include <sstream>
#include "cloud.h"
#include "coord.h"
@@ -567,6 +568,11 @@ std::string exclude_set::get_exclusion_desc()
it != exclude_roots.end(); ++it)
{
travel_exclude &ex = it->second;
+
+ // Don't count cloud exclusions.
+ if (strstr(ex.desc.c_str(), "cloud"))
+ continue;
+
if (ex.desc != "")
desc.push_back(ex.desc);
else