diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/viewgeom.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r-- | crawl-ref/source/viewgeom.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc index 77f0b724ad..1ae15d934e 100644 --- a/crawl-ref/source/viewgeom.cc +++ b/crawl-ref/source/viewgeom.cc @@ -95,7 +95,7 @@ class _inline_layout : public _layout { // x: View gets leftover; then mlist; then hud gutter if (leftover_x() < 0) - return (false); + return false; _increment(viewsz.x, leftover_x(), Options.view_max_width); @@ -113,7 +113,7 @@ class _inline_layout : public _layout // msg expands as much as it wants. // mlist gets any leftovers. if (leftover_y() < 0) - return (false); + return false; _increment(viewsz.y, leftover_leftcol_y(), Options.view_max_height); if ((viewsz.y % 2) != 1) @@ -139,7 +139,7 @@ class _inline_layout : public _layout mlistp = hudp + coord_def(0, hudsz.y); _assert_validity(); - return (true); + return true; } int leftover_x() const @@ -173,7 +173,7 @@ class _mlist_col_layout : public _layout // x: View and mlist share leftover; then hud gutter. if (leftover_x() < 0) - return (false); + return false; _increment(mlistsz.x, leftover_x()/2, MLIST_MAX_WIDTH); _increment(viewsz.x, leftover_x(), Options.view_max_width); @@ -187,7 +187,7 @@ class _mlist_col_layout : public _layout // y: View gets leftover; then message. if (leftover_y() < 0) - return (false); + return false; _increment(viewsz.y, leftover_y(), Options.view_max_height); @@ -204,7 +204,7 @@ class _mlist_col_layout : public _layout hudp = viewp + coord_def(viewsz.x+hud_gutter, 0); _assert_validity(); - return (true); + return true; } private: int leftover_x() const |