diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-08 16:47:06 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-08 18:31:55 +0200 |
commit | efbe1be543f6781d73b056d0acab3143dfde704f (patch) | |
tree | 5b9d5186a99f920fa6be0f8c15c43744ea85f3fc /crawl-ref/source/terrain.h | |
parent | ed5f5311c213fb847bc37293e4330aa268a406ed (diff) | |
download | crawl-ref-efbe1be543f6781d73b056d0acab3143dfde704f.tar.gz crawl-ref-efbe1be543f6781d73b056d0acab3143dfde704f.zip |
A rewrite of losight() to allow future generalization.
Parameters relevant to the LOS calculation are now passed as
an object los_param that takes care of coordinate translation,
bounds checking, opacity of cells and what is written to the
output array.
A check for in_bounds was changed to map_bounds for simlicity;
this should not have any effect.
Special casing for arena was removed from losight; instead
calc_show_los now calls the new losight_permissive.
Diffstat (limited to 'crawl-ref/source/terrain.h')
-rw-r--r-- | crawl-ref/source/terrain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h index 702237013d..1c0adc0b1d 100644 --- a/crawl-ref/source/terrain.h +++ b/crawl-ref/source/terrain.h @@ -53,7 +53,7 @@ void find_connected_range(coord_def d, dungeon_feature_type ft_min, void get_door_description(int door_size, const char** adjective, const char** noun); dungeon_feature_type grid_secret_door_appearance(const coord_def &where); dungeon_feature_type grid_appearance(const coord_def &gc); -dungeon_feature_type grid_appearance(feature_grid &gr, const coord_def &gc); +dungeon_feature_type grid_appearance(const feature_grid &gr, const coord_def &gc); unsigned int show_appearance(const coord_def &ep); bool grid_destroys_items(dungeon_feature_type grid); |