summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exclude.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-07-03 11:05:20 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-07-03 11:47:55 +0530
commit2756694d7f9e634c5f317706063c573b7b72ddbc (patch)
tree781a28fc17c22df8c44b92d530f9a7a11f22ddd9 /crawl-ref/source/exclude.cc
parent74f18d0d78a9eee0133fa88e396775bae50ac117 (diff)
downloadcrawl-ref-2756694d7f9e634c5f317706063c573b7b72ddbc.tar.gz
crawl-ref-2756694d7f9e634c5f317706063c573b7b72ddbc.zip
Implement chaos-brand melee effects for being engulfed in CLOUD_CHAOS (Mu).
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r--crawl-ref/source/exclude.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc
index 195d697eca..a71c372606 100644
--- a/crawl-ref/source/exclude.cc
+++ b/crawl-ref/source/exclude.cc
@@ -462,10 +462,9 @@ void set_exclude(const coord_def &p, int radius, bool autoexcl, bool vaultexcl,
{
if (exc->desc.empty() && defer_updates)
{
- int cl = env.cgrid(p);
-
+ const int cl = env.cgrid(p);
if (env.cgrid(p) != EMPTY_CLOUD)
- exc->desc = cloud_name(cl) + " cloud";
+ exc->desc = cloud_name_at_index(cl) + " cloud";
}
else if (exc->radius == radius)
return;
@@ -506,10 +505,9 @@ void set_exclude(const coord_def &p, int radius, bool autoexcl, bool vaultexcl,
}
else
{
- int cl = env.cgrid(p);
-
+ const int cl = env.cgrid(p);
if (env.cgrid(p) != EMPTY_CLOUD)
- desc = cloud_name(cl) + " cloud";
+ desc = cloud_name_at_index(cl) + " cloud";
}
curr_excludes.add_exclude(p, radius, autoexcl, desc, vaultexcl);