diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-07 11:23:15 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-08 15:55:12 +0200 |
commit | 8e9ce489a95dc5a99a8f7c24214daab1a9aa3737 (patch) | |
tree | 413632230322181847a7df0ad58bc8717245ca22 /crawl-ref/source/losglobal.cc | |
parent | 1401ecdd7c55daa75c9b869111823c394642c1a7 (diff) | |
download | crawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.tar.gz crawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.zip |
Drop a bunch of parentheses from return statements.
This is incomplete, partially because of me getting bored, partially because
of doubts about the point of leaving simple addition/etc in parentheses.
Diffstat (limited to 'crawl-ref/source/losglobal.cc')
-rw-r--r-- | crawl-ref/source/losglobal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/losglobal.cc b/crawl-ref/source/losglobal.cc index aefb8828b6..712bd826d8 100644 --- a/crawl-ref/source/losglobal.cc +++ b/crawl-ref/source/losglobal.cc @@ -28,9 +28,9 @@ static losfield_t* _lookup_globallos(const coord_def& p, const coord_def& q) return NULL; // p < q iff p.x < q.x || p.x == q.x && p.y < q.y if (diff < coord_def(0, 0)) - return (&globallos[q.x][q.y][-diff.x + o_half_x][-diff.y + o_half_y]); + return &globallos[q.x][q.y][-diff.x + o_half_x][-diff.y + o_half_y]; else - return (&globallos[p.x][p.y][ diff.x + o_half_x][ diff.y + o_half_y]); + return &globallos[p.x][p.y][ diff.x + o_half_x][ diff.y + o_half_y]; } static void _save_los(los_def* los, los_type l) |