summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2014-01-09 22:46:14 +0100
committerAdam Borowski <kilobyte@angband.pl>2014-01-10 01:27:07 +0100
commit08cb1a4dcf80dd9784e1cfd26729a000c13fe767 (patch)
tree1bac450446aa22ba68f871d3c239694929d1b24f /crawl-ref/source/libunix.cc
parenta735ae8250517f301fbf828a4f4cbc4924df3adb (diff)
downloadcrawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.tar.gz
crawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.zip
Drop some useless parentheses around comparisons.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 2b1ea48fc8..cb139beab7 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -141,7 +141,7 @@ static void setup_colour_pairs(void)
for (i = 0; i < 8; i++)
for (j = 0; j < 8; j++)
{
- if ((i > 0) || (j > 0))
+ if (i > 0 || j > 0)
init_pair(i * 8 + j, j, i);
}
@@ -877,7 +877,7 @@ bool kbhit()
#else
bool result = tiles.await_input(c, false);
- if (result && (c != 0))
+ if (result && c != 0)
pending = c;
return result;