diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-15 23:00:47 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-15 23:02:06 -0800 |
commit | 950d0852c9fc444994685503fc2eab5a3649dfe5 (patch) | |
tree | 3b6eeb95d06ed11b9af9b69e3d2ab303d6909aaa /crawl-ref/source/mon-behv.cc | |
parent | 5d53fe4d764de92058f505a240af27438c07785e (diff) | |
download | crawl-ref-950d0852c9fc444994685503fc2eab5a3649dfe5.tar.gz crawl-ref-950d0852c9fc444994685503fc2eab5a3649dfe5.zip |
_guess_invis_foe_pos(): fix radius_iterator
Use the radius_iterator constructor whihc doesn't depend upon the
player's LOS.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 9c241fac9d..9868e8dcda 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -990,7 +990,7 @@ static void _guess_invis_foe_pos(monsters *mon, bool strict = true) std::vector<coord_def> possibilities; - for (radius_iterator ri(mon->pos(), guess_radius); ri; ++ri) + for (radius_iterator ri(mon->pos(), guess_radius, C_ROUND); ri; ++ri) { // NOTE: This depends on mon_see_cell() ignoring clouds, // so that cells hidden by opaque clouds are included |