summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-09-25 16:54:24 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-06 17:45:16 +0200
commit9712c77f98bb70849f42e073801ac0319b8b846b (patch)
treec2b976c6fdfc2ac507b42b5c17f5a9c0c0125dfc /crawl-ref/source/travel.cc
parentf409c04e8f5b4525caeb2683fd71c778efdadaf1 (diff)
downloadcrawl-ref-9712c77f98bb70849f42e073801ac0319b8b846b.tar.gz
crawl-ref-9712c77f98bb70849f42e073801ac0319b8b846b.zip
Convert varius occurrences of LOS_RADIUS * LOS_RADIUS.
LOS actually goes to LOS_RADIUS * LOS_RADIUS + 1. None of the occurrences are likely to have had a big effect, however.
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 19128fcd35..8531fd2ca1 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -325,7 +325,7 @@ void update_exclusion_los(const coord_def &p)
{
for (unsigned int i = 0; i < curr_excludes.size(); i++)
if (!curr_excludes[i].uptodate
- && (curr_excludes[i].pos - p).abs() <= LOS_RADIUS * LOS_RADIUS)
+ && (curr_excludes[i].pos - p).abs() <= LOS_RADIUS * LOS_RADIUS + 1)
{
curr_excludes[i].set_exclude_show();
}