From 3c6fc5737751c19302e9c072ac74fb99472e8934 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 8 Sep 2009 04:41:28 +0000 Subject: Apply trunk r10642 to 0.5. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10643 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 7902389c47..0cbc1dbef4 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -6204,7 +6204,7 @@ void monster_los::check_los_beam(int dx, int dy) // that shooting a ray into that direction could bring us, esp. // as earlier grids in the ray will already have been handled, and // out of bounds grids are simply skipped in any LoS check. - if (!map_bounds(tx, ty)); + if (!map_bounds(tx, ty)) continue; // Already calculated a beam to (tx, ty), don't do so again. -- cgit v1.2.3-54-g00ecf