diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-29 15:47:28 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-29 15:47:28 +0000 |
commit | eeaba130f2a67321b64889c935fe443af70e3e97 (patch) | |
tree | 092d27407d961e6347ce1b78be947db82012ef8c /crawl-ref/source/view.cc | |
parent | 942a2a13a9bbe4672247b37e58a53abfc4ca4db5 (diff) | |
download | crawl-ref-eeaba130f2a67321b64889c935fe443af70e3e97.tar.gz crawl-ref-eeaba130f2a67321b64889c935fe443af70e3e97.zip |
Fix [2541331]: monster blinking only looked to the southeast.
Also fix a subtle bug causing monsters to be able to teleport
through walls if there was clear rock there too. (This is
because num_feats_between() is not symmetrical in its first
two arguments.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8847 c06c8d41-db1a-0410-9941-cceddc491573
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]; |