summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-10 12:36:02 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-10 12:36:02 +0200
commit8d5ace4a7663d520024d16d0466365da8295c1b7 (patch)
treead82784ec36a4cfb96589ba78dc4f95b15f8ec8d /crawl-ref/source/los.cc
parentdf3c7e3421b5458be36dab31e74783fde01a3408 (diff)
downloadcrawl-ref-8d5ace4a7663d520024d16d0466365da8295c1b7.tar.gz
crawl-ref-8d5ace4a7663d520024d16d0466365da8295c1b7.zip
Remove unused return value from _register_ray.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index 708d37f476..d2b869a02f 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -200,8 +200,7 @@ static std::vector<int> _find_nonduped_cellrays()
}
// Create and register the ray defined by the arguments.
-// Return true if the ray was actually registered (i.e., not a duplicate.)
-static bool _register_ray(double accx, double accy, double slope)
+static void _register_ray(double accx, double accy, double slope)
{
int xpos[LOS_MAX_RANGE * 2 + 1], ypos[LOS_MAX_RANGE * 2 + 1];
ray_def ray = ray_def(accx, accy, slope, 0);
@@ -210,7 +209,7 @@ static bool _register_ray(double accx, double accy, double slope)
// Early out if ray already exists.
if (_is_duplicate_ray(raylen, xpos, ypos))
- return (false);
+ return;
// Not duplicate, register.
for (int i = 0; i < raylen; ++i)
@@ -223,8 +222,6 @@ static bool _register_ray(double accx, double accy, double slope)
// Register the fullray.
raylengths.push_back(raylen);
fullrays.push_back(ray);
-
- return (true);
}
static void _create_blockrays()