summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ray.cc
diff options
context:
space:
mode:
authorBrendan Hickey <brendan@bhickey.net>2013-11-15 22:09:48 -0800
committerBrendan Hickey <brendan@bhickey.net>2013-11-15 22:23:40 -0800
commit88d061b7451307158b7e9cf8c83cd09e2ee3c283 (patch)
treef115d2b8bb33c44136bb0f8fdb6df03e5a499758 /crawl-ref/source/ray.cc
parent02d7e00d420071eed54ccd5a13dff0137a22ee52 (diff)
downloadcrawl-ref-88d061b7451307158b7e9cf8c83cd09e2ee3c283.tar.gz
crawl-ref-88d061b7451307158b7e9cf8c83cd09e2ee3c283.zip
Refactor ASSERT(a && b) again
This commit converts ASSERT(a && b) to ASSERT(a); ASSERT(b); Assertions of the form !(a && b) are left intact, since there isn't an obvious readability gain over (!a || !b).
Diffstat (limited to 'crawl-ref/source/ray.cc')
-rw-r--r--crawl-ref/source/ray.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc
index 92fbfac797..c297cde658 100644
--- a/crawl-ref/source/ray.cc
+++ b/crawl-ref/source/ray.cc
@@ -413,7 +413,8 @@ static geom::form _corner_wall(const coord_def &side, const reflect_grid &rg)
e = coord_def(1, 0);
else
e = coord_def(0, 1);
- ASSERT(!rg(coord_def(0,0)) && rg(side));
+ ASSERT(!rg(coord_def(0,0)));
+ ASSERT(rg(side));
// Reflect back by an orthogonal wall...
coord_def wall = e;
// unless the wall is clearly diagonal: