Mercurial > mm7
diff Chest.cpp @ 1420:e11c498c0dc6
more label cleaning 3
author | zipi |
---|---|
date | Sun, 28 Jul 2013 19:07:12 +0100 |
parents | 110eac219e5a |
children | 6de9c1316852 |
line wrap: on
line diff
--- a/Chest.cpp Sun Jul 28 18:54:40 2013 +0100 +++ b/Chest.cpp Sun Jul 28 19:07:12 2013 +0100 @@ -419,18 +419,13 @@ item_in_chest_count = CountChestItems(uChestID); if ( item_in_chest_count == -1 ) return 0; - v22 = 0; - if ( v5 > 0 ) - { - while ( !Chest::CanPlaceItemAt(v22, v4->uItemID, pChestWindow->par1C) ) + for( int i = 0; i < v5; i++) + { + if ( Chest::CanPlaceItemAt(i, v4->uItemID, pChestWindow->par1C) ) { - ++v22; - if ( v22 >= v5 ) - goto LABEL_8; + v21 = i; } - v21 = v22; } -LABEL_8: if ( v22 == v5 ) { if ( uActiveCharacter )