diff options
author | Adam Borowski <kilobyte@angband.pl> | 2014-01-09 22:46:14 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2014-01-10 01:27:07 +0100 |
commit | 08cb1a4dcf80dd9784e1cfd26729a000c13fe767 (patch) | |
tree | 1bac450446aa22ba68f871d3c239694929d1b24f /crawl-ref/source/los.cc | |
parent | a735ae8250517f301fbf828a4f4cbc4924df3adb (diff) | |
download | crawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.tar.gz crawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.zip |
Drop some useless parentheses around comparisons.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r-- | crawl-ref/source/los.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index f695cfbb33..6140dadc8b 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -130,7 +130,7 @@ void set_los_radius(int r) bool double_is_zero(const double x) { - return (x > -EPSILON_VALUE) && (x < EPSILON_VALUE); + return x > -EPSILON_VALUE && x < EPSILON_VALUE; } struct los_ray : public ray_def @@ -295,8 +295,8 @@ static compare_type _compare_cellrays(const cellray& a, const cellray& b) curb++; } } - maybe_sub = maybe_sub && (cura == enda); - maybe_super = maybe_super && (curb == endb); + maybe_sub = maybe_sub && cura == enda; + maybe_super = maybe_super && curb == endb; if (maybe_sub) return C_SUBRAY; // includes equality |