diff options
author | Neil Moore <neil@s-z.org> | 2014-03-30 09:53:27 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-03-30 09:55:46 -0400 |
commit | 03853fe038b71e1412df5b958ce95cb337790a16 (patch) | |
tree | d65c244710218e7d57a7abff394e8cb5c112a23b /crawl-ref/source/tileview.cc | |
parent | b1fb4f348a9065a6046112dc97a3c096fb70bbbf (diff) | |
download | crawl-ref-03853fe038b71e1412df5b958ce95cb337790a16.tar.gz crawl-ref-03853fe038b71e1412df5b958ce95cb337790a16.zip |
Further increase affected-cells limit in tiles.
Even the increased limit in 0.14-a0-3527-g55f82b9 wasn't enough for
a 180-degree thunderbolt from rod of lightning. Increase the limit
so that it covers all of LOS.
Diffstat (limited to 'crawl-ref/source/tileview.cc')
-rw-r--r-- | crawl-ref/source/tileview.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/tileview.cc b/crawl-ref/source/tileview.cc index d4995f5c5b..a44dd1080e 100644 --- a/crawl-ref/source/tileview.cc +++ b/crawl-ref/source/tileview.cc @@ -979,7 +979,10 @@ struct tile_ray coord_def ep; aff_type in_range; }; -FixedVector<tile_ray, LOS_RADIUS_SQ> tile_ray_vec; +// Allow the rays to fill the whole visible area if necessary. The size is +// about 4/pi times larger than it needs to be, but this way supports squarelos +// as well. +FixedVector<tile_ray, ENV_SHOW_DIAMETER * ENV_SHOW_DIAMETER> tile_ray_vec; void tile_place_ray(const coord_def &gc, aff_type in_range) { |