summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-11 00:04:36 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-11 00:04:36 +0100
commite903325064ab66fe104233a8f9cd7c9272885afc (patch)
tree83997740f83c4e63d0d415461a5eb268554036fa /crawl-ref/source/mon-cast.cc
parentdee99078b0772db95b6942416ede2b38d8c37ba5 (diff)
downloadcrawl-ref-e903325064ab66fe104233a8f9cd7c9272885afc.tar.gz
crawl-ref-e903325064ab66fe104233a8f9cd7c9272885afc.zip
Tomb of Doroklohe: delete clouds at the walls; proper message if the tomb is visible while being dropped.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index 2c2c0f1517..3464517da8 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -11,6 +11,7 @@
#endif
#include "beam.h"
+#include "cloud.h"
#include "colour.h"
#include "database.h"
#include "effects.h"
@@ -2072,6 +2073,8 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
if (grd(*ai) == DNGN_FLOOR || feat_is_trap(grd(*ai)))
{
grd(*ai) = DNGN_ROCK_WALL;
+ if (env.cgrid(*ai) != EMPTY_CLOUD)
+ delete_cloud(env.cgrid(*ai));
sumcount++;
}
}