diff options
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 365fd5eaed..dce2984de8 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -2919,8 +2919,8 @@ void losight(env_show_grid &sh, const int realx = xmult * compressed_ray_x[rayidx]; const int realy = ymult * compressed_ray_y[rayidx]; // update shadow map - if (x_p + realx >= 0 && x_p + realx < 80 - && y_p + realy >= 0 && y_p + realy < 70 + if (x_p + realx >= 0 && x_p + realx < GXM + && y_p + realy >= 0 && y_p + realy < GYM && realx * realx + realy * realy <= los_radius_squared) { sh[sh_xo+realx][sh_yo+realy] = gr[x_p+realx][y_p+realy]; |