summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewgeom.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/viewgeom.cc
parenta735ae8250517f301fbf828a4f4cbc4924df3adb (diff)
downloadcrawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.tar.gz
crawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.zip
Drop some useless parentheses around comparisons.
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r--crawl-ref/source/viewgeom.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc
index b1b0f6993a..a54d66067e 100644
--- a/crawl-ref/source/viewgeom.cc
+++ b/crawl-ref/source/viewgeom.cc
@@ -345,7 +345,7 @@ void crawl_view_geometry::set_player_at(const coord_def &c, bool centre)
{
const coord_def dp = c - last_player_pos;
const coord_def dc = vgrdc - oldc;
- if ((dc.x == dp.x) != (dc.y == dp.y))
+ if (dc.x == dp.x != (dc.y == dp.y))
vgrdc = oldc + dp;
}
}