diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-10 06:02:59 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-10 06:02:59 +0000 |
commit | 682d6e0d64bbda8084e867ebc887befabd75a51f (patch) | |
tree | 6912f5b0f4fa65908aa5811906d55062643bf207 | |
parent | aca697727f849e25156f1ede333aaaf5dbac75ee (diff) | |
download | crawl-ref-682d6e0d64bbda8084e867ebc887befabd75a51f.tar.gz crawl-ref-682d6e0d64bbda8084e867ebc887befabd75a51f.zip |
can_see los radius fix for 0.3.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2405 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index f6f3df95c4..2a9b5a69c1 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -4606,7 +4606,7 @@ bool monsters::can_see(const actor *target) const // Assume we can see any monster within LOS radius. This is inaccurate, // but can be followed up with a tracer if essential. Trunk does full // (expensive) ray tracing up front to figure this out. - return (distance(x, y, tx, ty) <= LOS_RADIUS); + return (distance(x, y, tx, ty) <= LOS_RADIUS * LOS_RADIUS); } void monsters::mutate() |