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/view.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/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 73635ad89c..88585c6169 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -427,8 +427,8 @@ bool magic_mapping(int map_radius, int proportion, bool suppress_msg, map_radius = 5; // now gradually weaker with distance: - const int pfar = dist_range((map_radius * 7) / 10); - const int very_far = dist_range((map_radius * 9) / 10); + const int pfar = dist_range(map_radius * 7 / 10); + const int very_far = dist_range(map_radius * 9 / 10); bool did_map = false; int num_altars = 0; |