summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:36:13 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 13:03:13 +0200
commit9042de61fb4f05a9da01d470ef325d6c6381dd28 (patch)
tree9801b1dfd90fd296dbfe8a4f20f269913bf5550c /crawl-ref/source/mon-pathfind.cc
parent53671ccab2db8416aa16b9df6ba799e0cfaa78dd (diff)
downloadcrawl-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/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index 4216684cd0..cee7639fbd 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -501,7 +501,7 @@ int monster_pathfind::mons_travel_cost(coord_def npos)
// The estimated cost to reach a grid is simply max(dx, dy).
int monster_pathfind::estimated_cost(coord_def p)
{
- return (grid_distance(p, target));
+ return grid_distance(p, target);
}
void monster_pathfind::add_new_pos(coord_def npos, int total)