diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 18:33:24 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 20:17:48 +0200 |
commit | af4b5015512fab9e409dc8ec4128c6f63ab967c9 (patch) | |
tree | fa6f259420e92fcef3f3d0466dfb22ced9c0e0f2 /crawl-ref/source/spells3.cc | |
parent | 564dac43f50543729d004dc1dfe905e81321837d (diff) | |
download | crawl-ref-af4b5015512fab9e409dc8ec4128c6f63ab967c9.tar.gz crawl-ref-af4b5015512fab9e409dc8ec4128c6f63ab967c9.zip |
Get rid of los_param outside of los.cc/losparam.cc.
The nicer interface to losight is now
void losight(env_show_grid& sh, const coord_def& center,
const opacity_func &opc = opc_default,
const bounds_func &bds = bds_default);
bounds_func provides the LOS boundary (usually just a circle with
radius the current LOS radius). opacity_func is a mapping of grid
coordinates to opacity values.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index b8a2032777..6facccd714 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1056,7 +1056,7 @@ int animate_dead(actor *caster, int pow, beh_type beha, unsigned short hitting, // Use an alternate LOS grid, based on the caster's LOS. env_show_grid losgrid; if (caster->atype() != ACT_PLAYER) - losight(losgrid, los_param_solid(caster->pos())); + losight(losgrid, caster->pos(), opc_solid); int number_raised = 0; int number_seen = 0; |