diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 15:26:57 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 15:26:57 +0000 |
commit | cc137f4b229d1763c3ad71fe56605b8611a1067c (patch) | |
tree | 601f5b148db6c1d94d593d89a11208ae3fa925ad /crawl-ref/source/items.cc | |
parent | 8b6107e382417e437cc541dfad85c20234ca3d7c (diff) | |
download | crawl-ref-cc137f4b229d1763c3ad71fe56605b8611a1067c.tar.gz crawl-ref-cc137f4b229d1763c3ad71fe56605b8611a1067c.zip |
Another code cleanup.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4244 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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] )) |