diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 20:32:37 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 20:32:37 +0000 |
commit | 6f00e679d1f90041599c50c3cc86ab4e499c9ba1 (patch) | |
tree | 2e1ceeed3d328f639166d0ca53dddbd6fba6cdcf /crawl-ref/source/items.cc | |
parent | 0b1e914465f3e3f1f4c73f63cf2346c3f2253861 (diff) | |
download | crawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.tar.gz crawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.zip |
More cleanups and fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } |