diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-10-21 22:46:10 +1000 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-10-21 15:31:14 +0200 |
commit | d0ff6986fc942720c8c20eebfc34b78051ce393f (patch) | |
tree | 693123ad5f20e8ae84010bd67ff265b01d83a22f /crawl-ref/source/misc.cc | |
parent | 36ac6df41458d10cf40fb837738b2f752bd05557 (diff) | |
download | crawl-ref-d0ff6986fc942720c8c20eebfc34b78051ce393f.tar.gz crawl-ref-d0ff6986fc942720c8c20eebfc34b78051ce393f.zip |
FPROP_NO_CLOUD_GEN, stop specific lava and shallow water grids generating relevant clouds.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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) |