comparison mm7_4.cpp @ 101:2fb33d31ca0d

8.02.13
author Ritor1
date Fri, 08 Feb 2013 15:59:32 +0600
parents d61f6bc04bf2
children 8a10c9780e17
comparison
equal deleted inserted replaced
98:b9196a36b7c9 101:2fb33d31ca0d
3108 } 3108 }
3109 3109
3110 v6 = (unsigned __int8)pParty->field_709; 3110 v6 = (unsigned __int8)pParty->field_709;
3111 for ( i = (unsigned __int8)pParty->field_709; i < v22; v6 = i++ + 1 ) 3111 for ( i = (unsigned __int8)pParty->field_709; i < v22; v6 = i++ + 1 )
3112 { 3112 {
3113 if ( v23 >= 2u ) 3113 if ( v23 >= 2 )
3114 break; 3114 break;
3115 v7 = pTmpBuf[v6]; 3115 v7 = pTmpBuf[v6];
3116 if ( (unsigned __int8)v7 >= 2u ) 3116 if ( (unsigned __int8)v7 >= 2 )
3117 { 3117 {
3118 sprintf(pContainer, "NPC%03d", pNPCStats->pNPCData[(unsigned __int8)v7 + 499].uPortraitID); 3118 sprintf(pContainer, "NPC%03d", pNPCStats->pNPCData[(unsigned __int8)v7 + 499].uPortraitID);
3119 v15 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); 3119 v15 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
3120 pRenderer->DrawTextureIndexed(pHiredNPCsIconsOffsetsX[v23], pHiredNPCsIconsOffsetsY[v23], 3120 pRenderer->DrawTextureIndexed(pHiredNPCsIconsOffsetsX[v23], pHiredNPCsIconsOffsetsY[v23], (Texture *)(v15 != -1 ? &pIcons_LOD->pTextures[v15] : 0));
3121 (Texture *)(v15 != -1 ? &pIcons_LOD->pTextures[v15] : 0));
3122 } 3121 }
3123 else 3122 else
3124 { 3123 {
3125 sprintf(pContainer, "NPC%03d", pParty->pHirelings[(unsigned __int8)v7].uPortraitID); 3124 sprintf(pContainer, "NPC%03d", pParty->pHirelings[(unsigned __int8)v7].uPortraitID);
3126 v8 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); 3125 v8 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
3127 v9 = v23; 3126 v9 = v23;
3128 pRenderer->DrawTextureIndexed( 3127 pRenderer->DrawTextureIndexed(pHiredNPCsIconsOffsetsX[v9], pHiredNPCsIconsOffsetsY[v9], (Texture *)(v8 != -1 ? &pIcons_LOD->pTextures[v8] : 0));
3129 pHiredNPCsIconsOffsetsX[v9],
3130 pHiredNPCsIconsOffsetsY[v9],
3131 (Texture *)(v8 != -1 ? &pIcons_LOD->pTextures[v8] : 0));
3132 v10 = (unsigned __int8)pTmpBuf[i]; 3128 v10 = (unsigned __int8)pTmpBuf[i];
3133 if ( pParty->pHirelings[v10].bDrawSomeAnim == 1 ) 3129 if ( pParty->pHirelings[v10].bDrawSomeAnim == 1 )
3134 { 3130 {
3135 uFrameID = pParty->pHirelings[v10].evtb; 3131 uFrameID = pParty->pHirelings[v10].evtb;
3136 v11 = pHiredNPCsIconsOffsetsX[v9]; 3132 v11 = pHiredNPCsIconsOffsetsX[v9];