summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-16 18:33:24 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-16 20:17:48 +0200
commitaf4b5015512fab9e409dc8ec4128c6f63ab967c9 (patch)
treefa6f259420e92fcef3f3d0466dfb22ced9c0e0f2 /crawl-ref/source/stuff.cc
parent564dac43f50543729d004dc1dfe905e81321837d (diff)
downloadcrawl-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/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 3b3324ea50..89212293ce 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -1694,7 +1694,7 @@ bool is_trap_square(dungeon_feature_type grid)
// applied to new games.
void zap_los_monsters()
{
- losight(env.show, los_param_base(you.pos()));
+ losight(env.show, you.pos());
for (rectangle_iterator ri(crawl_view.vlos1, crawl_view.vlos2); ri; ++ri )
{