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.cc | |
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.cc')
-rw-r--r-- | crawl-ref/source/terrain.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc index 5d831713bb..ee0efbde29 100644 --- a/crawl-ref/source/terrain.cc +++ b/crawl-ref/source/terrain.cc @@ -368,7 +368,7 @@ dungeon_feature_type grid_appearance(const coord_def &gc) return grid_appearance(grd, 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) { dungeon_feature_type grid = gr(gc); if (grid == DNGN_SECRET_DOOR) |