From 05c8dfaba3d73566693df38b1e170c803e016842 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 7 Nov 2009 23:13:30 +0100 Subject: Remove player.h dependency from coordit.h. adjacent_iterator had a default center of you.pos(), which is now gone (also the uses of). I was running into circular header dependencies with actor.h including los_def.h including coordit.h including player.h including actor.h. --- crawl-ref/source/coordit.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crawl-ref/source/coordit.h') diff --git a/crawl-ref/source/coordit.h b/crawl-ref/source/coordit.h index ecf57fad53..d4624c9ec7 100644 --- a/crawl-ref/source/coordit.h +++ b/crawl-ref/source/coordit.h @@ -1,8 +1,6 @@ #ifndef COORDIT_H #define COORDIT_H -#include "player.h" - class rectangle_iterator : public std::iterator { @@ -50,7 +48,7 @@ private: class adjacent_iterator : public radius_iterator { public: - explicit adjacent_iterator( const coord_def& pos = you.pos(), + explicit adjacent_iterator( const coord_def& pos, bool _exclude_center = true ) : radius_iterator(pos, 1, true, false, _exclude_center) {} }; -- cgit v1.2.3-54-g00ecf