diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-13 21:33:23 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-13 21:33:23 +0000 |
commit | 36cb1e6187e1826c345597eec2afff77e83988d6 (patch) | |
tree | 9f6d5b5211744da44e7e41a000709fbfb7a5d59c /crawl-ref/source/stuff.cc | |
parent | a71e775e717dafe7504d13839dae7d94c40fe1da (diff) | |
download | crawl-ref-36cb1e6187e1826c345597eec2afff77e83988d6.tar.gz crawl-ref-36cb1e6187e1826c345597eec2afff77e83988d6.zip |
Fix 1992604: monster_los asserting for positions out of bounds.
Mark bees created in bee hives as patrolling.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5789 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index a03bb0cc5b..802ad57cf1 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -115,11 +115,11 @@ void radius_iterator::step() // Sweep L-R, U-D location.x++; - if ( location.x > maxx ) + if (location.x > maxx) { location.x = minx; location.y++; - if ( location.y > maxy ) + if (location.y > maxy) iter_done = true; } } |