summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-08-15 14:39:21 -0400
committerJesse Luehrs <doy@tozt.net>2014-08-15 14:39:21 -0400
commit0d61daab317636fdbfa7b6100f41aa3d67bfe514 (patch)
tree0b1dce206ac2a3eeb100cdf5f5c1c2d9823a2a2e /crawl-ref/source/cloud.cc
parentfa0fb9524926a6770a1b1ef5351a450e00862015 (diff)
downloadcrawl-ref-0d61daab317636fdbfa7b6100f41aa3d67bfe514.tar.gz
crawl-ref-0d61daab317636fdbfa7b6100f41aa3d67bfe514.zip
remove clouds if solid features are shifted onto them (8549)
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index ceaa07c0c0..f4986f7e7c 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -478,6 +478,8 @@ void move_cloud_to(coord_def src, coord_def dst)
// that clouds get moved along with the rest of the map.
void move_cloud(int cloud, const coord_def& newpos)
{
+ ASSERT(!cell_is_solid(newpos));
+
if (cloud != EMPTY_CLOUD)
{
const coord_def oldpos = env.cloud[cloud].pos;