From af4b5015512fab9e409dc8ec4128c6f63ab967c9 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 16 Oct 2009 18:33:24 +0200 Subject: 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. --- crawl-ref/source/spells3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells3.cc') 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; -- cgit v1.2.3-54-g00ecf