diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
commit | 555734fcd3aef4c83605d70d0456dda28b7b5ace (patch) | |
tree | 9c34fe5bc58d5f3d4c0a7622045adc7aa1d17a98 /crawl-ref/source/coord.cc | |
parent | acf5187334f2cfb983a1a8de07d1e77f73e4283a (diff) | |
download | crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.tar.gz crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.zip |
Massive spacing fixes: "( spaces after parentheses )".
I did review it manually to find places where they made sense (like some
tables), but for a massive sed job like this there might be places that
I missed.
Diffstat (limited to 'crawl-ref/source/coord.cc')
-rw-r--r-- | crawl-ref/source/coord.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/coord.cc b/crawl-ref/source/coord.cc index 5f52e27c77..0507ab6732 100644 --- a/crawl-ref/source/coord.cc +++ b/crawl-ref/source/coord.cc @@ -18,12 +18,12 @@ int grid_distance(const coord_def& p1, const coord_def& p2) return ((p2 - p1).rdist()); } -int distance( const coord_def& p1, const coord_def& p2 ) +int distance(const coord_def& p1, const coord_def& p2) { return ((p2 - p1).abs()); } -bool adjacent( const coord_def& p1, const coord_def& p2 ) +bool adjacent(const coord_def& p1, const coord_def& p2) { return grid_distance(p1, p2) <= 1; } |