From b62a72ee0d297f09ef26873fde74c140339736ea Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Mon, 11 Jan 2010 09:55:21 +1000 Subject: Make haloes interact sanely with gloom. --- crawl-ref/source/cloud.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc index d4c35f363c..50e27a3fd2 100644 --- a/crawl-ref/source/cloud.cc +++ b/crawl-ref/source/cloud.cc @@ -12,6 +12,7 @@ #include "externs.h" +#include "areas.h" #include "branch.h" #include "cloud.h" #include "colour.h" @@ -237,6 +238,9 @@ void manage_clouds() if (env.cloud[env.cgrid(*ai)].type == CLOUD_GLOOM) count++; + if (!haloers(cloud.pos).empty() && !silenced(cloud.pos)) + count = 0; + if (count < 4) dissipate *= 50; else -- cgit v1.2.3-54-g00ecf