diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 20:32:37 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 20:32:37 +0000 |
commit | 6f00e679d1f90041599c50c3cc86ab4e499c9ba1 (patch) | |
tree | 2e1ceeed3d328f639166d0ca53dddbd6fba6cdcf /crawl-ref/source/spells1.cc | |
parent | 0b1e914465f3e3f1f4c73f63cf2346c3f2253861 (diff) | |
download | crawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.tar.gz crawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.zip |
More cleanups and fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index d4e5d520e0..cf793e20d3 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -1691,19 +1691,15 @@ bool cast_sure_blade(int power) return (success); } -void manage_fire_shield(void) +void manage_fire_shield() { you.duration[DUR_FIRE_SHIELD]--; if (!you.duration[DUR_FIRE_SHIELD]) return; - for ( radius_iterator ri(you.pos(), 1); ri; ++ri ) - { - if ( *ri == you.pos() ) - continue; - - if (!grid_is_solid(grd(*ri)) && env.cgrid(*ri) == EMPTY_CLOUD) - place_cloud( CLOUD_FIRE, *ri, 1 + random2(6), KC_YOU ); - } + // Place fire clouds all around you + for ( adjacent_iterator ai; ai; ++ai ) + if (!grid_is_solid(grd(*ai)) && env.cgrid(*ai) == EMPTY_CLOUD) + place_cloud( CLOUD_FIRE, *ai, 1 + random2(6), KC_YOU ); } |