comparison mm7_4.cpp @ 33:a9e9c6989d04

20.01.13
author Ritor1
date Sun, 20 Jan 2013 18:57:23 +0600
parents 13da46a8d45d
children aac67e0d2c10
comparison
equal deleted inserted replaced
32:4c90ae1041aa 33:a9e9c6989d04
2906 //int v1; // eax@2 2906 //int v1; // eax@2
2907 //int v2; // edi@3 2907 //int v2; // edi@3
2908 char *v3; // esi@5 2908 char *v3; // esi@5
2909 char *v4; // [sp+10h] [bp-4h]@1 2909 char *v4; // [sp+10h] [bp-4h]@1
2910 2910
2911 pIcons_LOD->dword_011BA0 = pIcons_LOD->uNumLoadedFiles; 2911 pIcons_LOD->pFacesLock = pIcons_LOD->uNumLoadedFiles;
2912 2912
2913 for (uint i = 0; i < 4; ++i) 2913 for (uint i = 0; i < 4; ++i)
2914 for (uint j = 0; j < 56; ++j) 2914 for (uint j = 0; j < 56; ++j)
2915 { 2915 {
2916 sprintf(pTmpBuf, "%s%02d", pPlayerPortraitsNames[pParty->pPlayers[i].uFace], j + 1); 2916 sprintf(pTmpBuf, "%s%02d", pPlayerPortraitsNames[pParty->pPlayers[i].uFace], j + 1);
3015 } 3015 }
3016 ++v0; 3016 ++v0;
3017 } 3017 }
3018 while ( (signed int)v0 < (signed int)pParty->pHirelings ); 3018 while ( (signed int)v0 < (signed int)pParty->pHirelings );
3019 v6 = pIcons_LOD->uNumLoadedFiles - 1; 3019 v6 = pIcons_LOD->uNumLoadedFiles - 1;
3020 if ( v6 >= pIcons_LOD->dword_011BA0 ) 3020 if ( v6 >= pIcons_LOD->pFacesLock )
3021 { 3021 {
3022 v7 = &pIcons_LOD->pTextures[v6]; 3022 v7 = &pIcons_LOD->pTextures[v6];
3023 do 3023 do
3024 { 3024 {
3025 v7->Release(); 3025 v7->Release();
3044 } 3044 }
3045 } 3045 }
3046 --v6; 3046 --v6;
3047 --v7; 3047 --v7;
3048 } 3048 }
3049 while ( v6 >= pIcons_LOD->dword_011BA0 ); 3049 while ( v6 >= pIcons_LOD->pFacesLock );
3050 } 3050 }
3051 v12 = pIcons_LOD->dword_011BA0; 3051 v12 = pIcons_LOD->pFacesLock;
3052 pIcons_LOD->dword_011BA0 = 0; 3052 pIcons_LOD->pFacesLock = 0;
3053 pIcons_LOD->uNumLoadedFiles = v12; 3053 pIcons_LOD->uNumLoadedFiles = v12;
3054 } 3054 }
3055 // 4ED498: using guessed type char byte_4ED498; 3055 // 4ED498: using guessed type char byte_4ED498;
3056 3056
3057 //----- (00491F87) -------------------------------------------------------- 3057 //----- (00491F87) --------------------------------------------------------
9673 LOBYTE(v2->uFlags) |= 0x80u; 9673 LOBYTE(v2->uFlags) |= 0x80u;
9674 pParty->field_709 = 0; 9674 pParty->field_709 = 0;
9675 sub_44A56A(); 9675 sub_44A56A();
9676 if ( pParty->pHirelings[0].pName ) 9676 if ( pParty->pHirelings[0].pName )
9677 { 9677 {
9678 memcpy(&pParty->pHirelings[1], v2, sizeof(pParty->pHirelings[1])); 9678 memcpy(&pParty->pHirelings[1], v2, sizeof(pParty->pHirelings[1]));//Ritor1: unknow
9679 v24 = v2->pName; 9679 v24 = v2->pName;
9680 v22 = pParty->pHireling2Name; 9680 v22 = pParty->pHireling2Name;
9681 } 9681 }
9682 else 9682 else
9683 { 9683 {