From def6a88b388cdcf3ac08c2144b9d30f6c8bfb010 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 6 Nov 2009 19:08:46 +0100 Subject: Convert a few read-only uses of actor::position to actor::pos(). --- crawl-ref/source/abyss.cc | 2 +- crawl-ref/source/spells2.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc index 2de00503a3..398c5b8ff5 100644 --- a/crawl-ref/source/abyss.cc +++ b/crawl-ref/source/abyss.cc @@ -412,7 +412,7 @@ void area_shift(void) { #ifdef DEBUG_ABYSS mprf(MSGCH_DIAGNOSTICS, "area_shift() - player at pos (%d, %d)", - you.position.x, you.position.y); + you.pos().x, you.pos().y); #endif // Preserve floor props around the player, primarily so that diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index f35a9e1f49..b0f2f38563 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -1728,7 +1728,7 @@ int fungal_bloom() int processed_count = 0; bool kills = false; - for (radius_iterator i(you.position, LOS_RADIUS); i; ++i) + for (radius_iterator i(you.pos(), LOS_RADIUS); i; ++i) { actor *target = actor_at(*i); if (target && (target->atype() == ACT_PLAYER -- cgit v1.2.3-54-g00ecf