From d0ff6986fc942720c8c20eebfc34b78051ce393f Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Wed, 21 Oct 2009 22:46:10 +1000 Subject: FPROP_NO_CLOUD_GEN, stop specific lava and shallow water grids generating relevant clouds. Signed-off-by: Adam Borowski --- crawl-ref/source/misc.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/misc.cc') diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 932d1c1dc9..cd292c8144 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -3014,6 +3014,9 @@ void setup_environment_effects() static void apply_environment_effect(const coord_def &c) { const dungeon_feature_type grid = grd(c); + // Don't apply if if the feature doesn't want it. + if (testbits(env.map(c).property, FPROP_NO_CLOUD_GEN)) + return; if (grid == DNGN_LAVA) check_place_cloud(CLOUD_BLACK_SMOKE, c, random_range(4, 8), KC_OTHER); else if (grid == DNGN_SHALLOW_WATER) -- cgit v1.2.3-54-g00ecf