From 6f00e679d1f90041599c50c3cc86ab4e499c9ba1 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 23 Jul 2008 20:32:37 +0000 Subject: More cleanups and fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 9825a3dbd4..4d0d619b24 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -585,9 +585,9 @@ void item_was_destroyed(const item_def &item, int cause) xom_check_destroyed_item( item, cause ); } -void lose_item_stack( int x, int y ) +void lose_item_stack( const coord_def& where ) { - for ( stack_iterator si(coord_def(x,y)); si; ++si ) + for ( stack_iterator si(where); si; ++si ) { if (is_valid_item( *si )) // FIXME is this check necessary? { @@ -595,7 +595,7 @@ void lose_item_stack( int x, int y ) si->clear(); } } - igrd[x][y] = NON_ITEM; + igrd(where) = NON_ITEM; } void destroy_item_stack( int x, int y, int cause ) @@ -1925,7 +1925,7 @@ bool drop_item( int item_dropped, int quant_drop, bool try_offer ) if (try_offer && you.religion != GOD_NO_GOD && you.duration[DUR_PRAYER] - && grid_altar_god(grd[you.x_pos][you.y_pos]) == you.religion) + && grid_altar_god(grd(you.pos())) == you.religion) { offer_items(); } -- cgit v1.2.3-54-g00ecf