summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-07 23:13:30 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 01:31:41 +0100
commit05c8dfaba3d73566693df38b1e170c803e016842 (patch)
tree95347ff95d893e30a2c3101ba074c1a4e570bec2 /crawl-ref/source/spells1.cc
parent5a1a9596b2b2d2d36df854fbea7adb6d4bb8c605 (diff)
downloadcrawl-ref-05c8dfaba3d73566693df38b1e170c803e016842.tar.gz
crawl-ref-05c8dfaba3d73566693df38b1e170c803e016842.zip
Remove player.h dependency from coordit.h.
adjacent_iterator had a default center of you.pos(), which is now gone (also the uses of). I was running into circular header dependencies with actor.h including los_def.h including coordit.h including player.h including actor.h.
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 835030f6eb..2f798cadf1 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -1576,7 +1576,7 @@ void manage_fire_shield()
mpr("Your ring of flames is guttering out.", MSGCH_WARN);
// Place fire clouds all around you
- for ( adjacent_iterator ai; ai; ++ai )
+ for ( adjacent_iterator ai(you.pos()); ai; ++ai )
if (!feat_is_solid(grd(*ai)) && env.cgrid(*ai) == EMPTY_CLOUD)
place_cloud( CLOUD_FIRE, *ai, 1 + random2(6), KC_YOU );
}