diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:36:13 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 13:03:13 +0200 |
commit | 9042de61fb4f05a9da01d470ef325d6c6381dd28 (patch) | |
tree | 9801b1dfd90fd296dbfe8a4f20f269913bf5550c /crawl-ref/source/random.cc | |
parent | 53671ccab2db8416aa16b9df6ba799e0cfaa78dd (diff) | |
download | crawl-ref-9042de61fb4f05a9da01d470ef325d6c6381dd28.tar.gz crawl-ref-9042de61fb4f05a9da01d470ef325d6c6381dd28.zip |
Remove parentheses around return (simple_function_call).
For way too paranoid and underinclusive values of "simple".
Diffstat (limited to 'crawl-ref/source/random.cc')
-rw-r--r-- | crawl-ref/source/random.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/random.cc b/crawl-ref/source/random.cc index ed84e7beaf..fc7504fec7 100644 --- a/crawl-ref/source/random.cc +++ b/crawl-ref/source/random.cc @@ -80,7 +80,7 @@ int maybe_random2(int x, bool random_factor) if (x <= 1) return 0; if (random_factor) - return (random2(x)); + return random2(x); else return (x / 2); } @@ -100,7 +100,7 @@ int maybe_random_div(int nom, int denom, bool random_factor) int maybe_roll_dice(int num, int size, bool random) { if (random) - return (roll_dice(num, size)); + return roll_dice(num, size); else return ((num + num * size) / 2); } |