diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-26 05:14:23 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-26 05:20:22 +0200 |
commit | 131d11a7c2c1612c940db100003a09c8e10e4d2d (patch) | |
tree | c92f9e0a0d810bddb60989d15cbad43bac710ede /crawl-ref/source/spl-transloc.cc | |
parent | 6b76d9282724e7826dd3e732b58ab3c57fcda26c (diff) | |
download | crawl-ref-131d11a7c2c1612c940db100003a09c8e10e4d2d.tar.gz crawl-ref-131d11a7c2c1612c940db100003a09c8e10e4d2d.zip |
Rewrite (x*y)/z as x*y/z
Also, simplify an expression such removal of parentheses revealed.
Diffstat (limited to 'crawl-ref/source/spl-transloc.cc')
-rw-r--r-- | crawl-ref/source/spl-transloc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-transloc.cc b/crawl-ref/source/spl-transloc.cc index 2b1a4ae393..e2a7d2f2d4 100644 --- a/crawl-ref/source/spl-transloc.cc +++ b/crawl-ref/source/spl-transloc.cc @@ -1003,7 +1003,7 @@ static bool _quadrant_blink(coord_def dir, int pow) // walls nearby. coord_def target; bool found = false; - for (int i = 0; i < (pow*pow) / 500 + 1; ++i) + for (int i = 0; i < pow*pow / 500 + 1; ++i) { // Find a space near our base point... // First try to find a random square not adjacent to the basepoint, |