From cf4b68bb3c2e5d1955d41fff7284a7d56a484b3f Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 15 Feb 2009 10:02:19 +0000 Subject: Various cleanups, mostly having to do with coord_def(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9086 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/stuff.cc') diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 22726b562f..a89e46192d 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -1690,7 +1690,7 @@ void zap_los_monsters() // coord_def int coord_def::distance_from(const coord_def &other) const { - return (grid_distance(x, y, other.x, other.y)); + return (grid_distance(*this, other)); } int integer_sqrt(int value) -- cgit v1.2.3-54-g00ecf