diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-26 20:58:00 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-26 21:02:32 -0600 |
commit | 55f82b9fce15960c5476bf553e65034b07193364 (patch) | |
tree | 5ef3d1e25789225f92bc8dcf143e92815c409989 /crawl-ref/source/tileview.cc | |
parent | 78c194057752e3e2406af883c2140fac9ca6fad1 (diff) | |
download | crawl-ref-55f82b9fce15960c5476bf553e65034b07193364.tar.gz crawl-ref-55f82b9fce15960c5476bf553e65034b07193364.zip |
Increase limit for showing tiles affected by spells (gammafunk, |amethyst).
And ASSERT if we go beyond that limit.
The old limit was being hit for maximum power Glaciate.
Diffstat (limited to 'crawl-ref/source/tileview.cc')
-rw-r--r-- | crawl-ref/source/tileview.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/tileview.cc b/crawl-ref/source/tileview.cc index b4efc2e027..239042b3e2 100644 --- a/crawl-ref/source/tileview.cc +++ b/crawl-ref/source/tileview.cc @@ -979,7 +979,7 @@ struct tile_ray coord_def ep; aff_type in_range; }; -FixedVector<tile_ray, 40> tile_ray_vec; +FixedVector<tile_ray, LOS_RADIUS_SQ> tile_ray_vec; void tile_place_ray(const coord_def &gc, aff_type in_range) { @@ -987,11 +987,9 @@ void tile_place_ray(const coord_def &gc, aff_type in_range) // rays directly to the screen. The tiles version doesn't have // (nor want) such direct access. So, it batches up all of the // rays and applies them in viewwindow(...). - if (num_tile_rays < tile_ray_vec.size() - 1) - { - tile_ray_vec[num_tile_rays].in_range = in_range; - tile_ray_vec[num_tile_rays++].ep = grid2show(gc); - } + ASSERT(num_tile_rays < tile_ray_vec.size() - 1); + tile_ray_vec[num_tile_rays].in_range = in_range; + tile_ray_vec[num_tile_rays++].ep = grid2show(gc); } void tile_draw_rays(bool reset_count) |