diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 01:25:43 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 01:41:41 +0100 |
commit | b33014e5510ddaf3a5088c934bbb53aa406b451c (patch) | |
tree | dde4379a3ad2a0b8eb10179029d4acac6aa88a76 /crawl-ref/source/spells1.cc | |
parent | dbb39bdfc8ddc1c4b06b07f09d626791e46ed4bb (diff) | |
download | crawl-ref-b33014e5510ddaf3a5088c934bbb53aa406b451c.tar.gz crawl-ref-b33014e5510ddaf3a5088c934bbb53aa406b451c.zip |
Replace bounds_func with circle_def.
The various LOS objects and functions now accept a circle_def
instead of a bounds_func. This is a little less generic, but
should eventually help with iterating over coordinates in
any los_def.
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 2f798cadf1..b32934ed84 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -334,7 +334,8 @@ bool _lightning_los(const coord_def& source, const coord_def& target) { // XXX: currently bounded by circular LOS radius; // XXX: adapt opacity -- allow passing clouds. - return (exists_ray(source, target, opc_solid, bds_maxlos)); + return (exists_ray(source, target, opc_solid, + circle_def(LOS_MAX_RADIUS, C_ROUND))); } void cast_chain_lightning(int pow, const actor *caster) |