diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-21 22:07:52 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-21 22:07:52 +0000 |
commit | 391f30e5a07d493508cb7e281fef4d82ee0ae47c (patch) | |
tree | f7dfd9cd0770b589367c86f8e681a69030b06ee2 /crawl-ref/source/stuff.h | |
parent | ab9bd52586015758713a23e157666692abae7036 (diff) | |
download | crawl-ref-391f30e5a07d493508cb7e281fef4d82ee0ae47c.tar.gz crawl-ref-391f30e5a07d493508cb7e281fef4d82ee0ae47c.zip |
Various code cleanups. Moving towards using coord_def()
instead of x and y where possible.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6630 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r-- | crawl-ref/source/stuff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h index 60c2ae4305..d1eea67525 100644 --- a/crawl-ref/source/stuff.h +++ b/crawl-ref/source/stuff.h @@ -149,6 +149,7 @@ inline bool map_bounds(const coord_def &p) int grid_distance( const coord_def& p1, const coord_def& p2 ); int grid_distance( int x, int y, int x2, int y2 ); +int distance( const coord_def& p1, const coord_def& p2 ); int distance( int x, int y, int x2, int y2); bool adjacent( int x, int y, int x2, int y2 ); |