Mercurial > mm7
diff Party.cpp @ 2024:bb0da61e4a7e
substract item and AddItem for Alexis fix
author | Ritor1 |
---|---|
date | Sat, 16 Nov 2013 00:02:24 +0600 |
parents | 84fa3c83d63f |
children | 28cb79ae2f6f |
line wrap: on
line diff
--- a/Party.cpp Thu Nov 14 17:25:09 2013 +0600 +++ b/Party.cpp Sat Nov 16 00:02:24 2013 +0600 @@ -1120,9 +1120,13 @@ v7 = pIcons_LOD->LoadTexturePtr(v5, TEXTURE_16BIT_PALETTE); v21 = areWeLoadingTexture; v8 = 0; + uint current_player = uActiveCharacter; for (int i = 0; i < 4; i++) { - v9 = ::pPlayers[(uActiveCharacter + i) % 4]; //start with current active player, then cycle right if item won't fit + current_player = current_player + i; + if ( current_player > 4 ) + current_player = current_player - 4; + v9 = ::pPlayers[current_player]; v10 = v9->AddItem(-1, pItem->uItemID); if ( v10 ) {