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/viewmap.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/viewmap.cc')
-rw-r--r-- | crawl-ref/source/viewmap.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/viewmap.cc b/crawl-ref/source/viewmap.cc index 7639a50dde..ad1999e35e 100644 --- a/crawl-ref/source/viewmap.cc +++ b/crawl-ref/source/viewmap.cc @@ -672,18 +672,18 @@ public: static level_pos _stair_dest(const coord_def& p, command_type dir) { if (!in_bounds(p)) - return (level_pos()); + return level_pos(); if (feat_stair_direction(env.map_knowledge(p).feat()) != dir) - return (level_pos()); + return level_pos(); LevelInfo *linf = travel_cache.find_level_info(level_id::current()); if (!linf) - return (level_pos()); + return level_pos(); const stair_info *sinf = linf->get_stair(p); if (!sinf) - return (level_pos()); + return level_pos(); return (sinf->destination); } |