From cc137f4b229d1763c3ad71fe56605b8611a1067c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 15 Apr 2008 15:26:57 +0000 Subject: Another code cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4244 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 7 +++---- 1 file changed, 3 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 6263621330..04e20be1eb 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1428,10 +1428,9 @@ int find_free_slot(const item_def &i) // we re-try searching the oposite direction. // Return first free slot - for (slot = 0; slot < ENDOFPACK; ++slot) { + for (slot = 0; slot < ENDOFPACK; ++slot) if (!is_valid_item(you.inv[slot])) return slot; - } return (-1); #undef slotisfree @@ -1908,7 +1907,7 @@ bool drop_item( int item_dropped, int quant_drop, bool try_offer ) if ( grid_destroys_items(my_grid) ) { - if( !silenced(you.pos()) ) + if ( !silenced(you.pos()) ) mprf(MSGCH_SOUND, grid_item_destruction_message(my_grid)); item_was_destroyed(you.inv[item_dropped], NON_MONSTER); @@ -2331,7 +2330,7 @@ void autopickup() int inv_count(void) { - int count=0; + int count = 0; for (int i = 0; i < ENDOFPACK; i++) if (is_valid_item( you.inv[i] )) -- cgit v1.2.3-54-g00ecf