Mercurial > mm7
comparison mm7_5.cpp @ 337:d27e30e0158a
Merge
author | Gloval |
---|---|
date | Thu, 21 Feb 2013 00:35:45 +0400 |
parents | ea55d6414029 0cafbae201c8 |
children | 1c681ad45653 |
comparison
equal
deleted
inserted
replaced
336:ea55d6414029 | 337:d27e30e0158a |
---|---|
7003 } | 7003 } |
7004 | 7004 |
7005 //----- (0043CC7C) -------------------------------------------------------- | 7005 //----- (0043CC7C) -------------------------------------------------------- |
7006 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID) | 7006 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID) |
7007 { | 7007 { |
7008 Player **ppPlayer; // esi@1 | 7008 //Player **ppPlayer; // esi@1 |
7009 Player *pPlayer; // ebx@1 | 7009 Player *pPlayer; // ebx@1 |
7010 enum CHARACTER_RACE pRace; // edi@1 | 7010 //enum CHARACTER_RACE pRace; // edi@1 |
7011 signed int pSex; // eax@1 | 7011 signed int pSex; // eax@1 |
7012 int v5; // edi@4 | 7012 //int v5; // edi@4 |
7013 unsigned int v6; // ecx@9 | 7013 unsigned int v6; // ecx@9 |
7014 int v7; // ecx@10 | 7014 int v7; // ecx@10 |
7015 unsigned int v8; // eax@14 | 7015 unsigned int v8; // eax@14 |
7016 int v9; // eax@15 | 7016 int v9; // eax@15 |
7017 int v10; // edx@15 | 7017 int v10; // edx@15 |
7070 Texture *v63; // edi@145 | 7070 Texture *v63; // edi@145 |
7071 double v64; // st7@147 | 7071 double v64; // st7@147 |
7072 int v65; // edi@148 | 7072 int v65; // edi@148 |
7073 char *v66; // eax@148 | 7073 char *v66; // eax@148 |
7074 Texture *v67; // edi@149 | 7074 Texture *v67; // edi@149 |
7075 Player *v68; // ebx@155 | 7075 //Player *v68; // ebx@155 |
7076 unsigned int v69; // edx@155 | 7076 unsigned int v69; // edx@155 |
7077 int v70; // edx@156 | 7077 int v70; // edx@156 |
7078 unsigned int v71; // eax@160 | 7078 unsigned int v71; // eax@160 |
7079 int v72; // edi@161 | 7079 int v72; // edi@161 |
7080 int v73; // edx@163 | 7080 int v73; // edx@163 |
7219 int a2g; // [sp+14h] [bp-38h]@214 | 7219 int a2g; // [sp+14h] [bp-38h]@214 |
7220 int a2h; // [sp+14h] [bp-38h]@274 | 7220 int a2h; // [sp+14h] [bp-38h]@274 |
7221 Texture *a2i; // [sp+14h] [bp-38h]@284 | 7221 Texture *a2i; // [sp+14h] [bp-38h]@284 |
7222 int a2j; // [sp+14h] [bp-38h]@312 | 7222 int a2j; // [sp+14h] [bp-38h]@312 |
7223 int a2k; // [sp+14h] [bp-38h]@336 | 7223 int a2k; // [sp+14h] [bp-38h]@336 |
7224 Player *v217; // [sp+18h] [bp-34h]@1 | 7224 //Player *v217; // [sp+18h] [bp-34h]@1 |
7225 int v218; // [sp+1Ch] [bp-30h]@15 | 7225 int v218; // [sp+1Ch] [bp-30h]@15 |
7226 int v219; // [sp+1Ch] [bp-30h]@60 | 7226 int v219; // [sp+1Ch] [bp-30h]@60 |
7227 int v220; // [sp+1Ch] [bp-30h]@94 | 7227 int v220; // [sp+1Ch] [bp-30h]@94 |
7228 int v221; // [sp+1Ch] [bp-30h]@128 | 7228 int v221; // [sp+1Ch] [bp-30h]@128 |
7229 int v222; // [sp+1Ch] [bp-30h]@161 | 7229 int v222; // [sp+1Ch] [bp-30h]@161 |
7252 signed int v245; // [sp+34h] [bp-18h]@361 | 7252 signed int v245; // [sp+34h] [bp-18h]@361 |
7253 unsigned int uPlayerID_; // [sp+38h] [bp-14h]@1 | 7253 unsigned int uPlayerID_; // [sp+38h] [bp-14h]@1 |
7254 int uPlayerID_a; // [sp+38h] [bp-14h]@9 | 7254 int uPlayerID_a; // [sp+38h] [bp-14h]@9 |
7255 signed int IsDwarf; // [sp+40h] [bp-Ch]@4 | 7255 signed int IsDwarf; // [sp+40h] [bp-Ch]@4 |
7256 int v249; // [sp+40h] [bp-Ch]@358 | 7256 int v249; // [sp+40h] [bp-Ch]@358 |
7257 signed int v250; // [sp+44h] [bp-8h]@1 | 7257 //signed int v250; // [sp+44h] [bp-8h]@1 |
7258 | 7258 |
7259 ppPlayer = &pPlayers[uPlayerID]; | 7259 pPlayer = pPlayers[uPlayerID]; |
7260 pPlayer = *ppPlayer; | |
7261 uPlayerID_ = uPlayerID; | 7260 uPlayerID_ = uPlayerID; |
7262 v217 = *ppPlayer; | |
7263 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE); | 7261 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE); |
7264 pRace = pPlayer->GetRace(); | |
7265 pSex = pPlayer->GetSexByVoice(); | 7262 pSex = pPlayer->GetSexByVoice(); |
7266 v250 = pSex; | 7263 if ( pPlayer->GetRace() && pPlayer->GetRace() != 1 && pPlayer->GetRace() != 2 ) |
7267 if ( pRace && pRace != 1 && pRace != 2 ) | |
7268 { | 7264 { |
7269 IsDwarf = 1; | 7265 IsDwarf = 1; |
7270 v5 = (pSex != 0) + 2; | 7266 pBodyComplection = (pSex != 0) + 2; |
7271 } | 7267 } |
7272 else | 7268 else |
7273 { | 7269 { |
7274 IsDwarf = 0; | 7270 IsDwarf = 0; |
7275 v5 = pSex != 0; | 7271 pBodyComplection = pSex != 0; |
7276 } | 7272 } |
7277 pBodyComplection = v5; | 7273 v244 = pPlayer->uFace; |
7278 v244 = (*ppPlayer)->uFace; | |
7279 pRenderer->ResetClip(); | 7274 pRenderer->ResetClip(); |
7280 pRenderer->DrawTextureIndexed(0x1D3u, 0, (Texture *)(uTextureID_BACKDOLL != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BACKDOLL] : 0));//Подложка | 7275 pRenderer->DrawTextureIndexed(0x1D3u, 0, (Texture *)(uTextureID_BACKDOLL != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BACKDOLL] : 0));//Подложка |
7281 if ( !IsPlayerWearingWatersuit[uPlayerID_] ) | 7276 if ( !IsPlayerWearingWatersuit[uPlayerID_] ) |
7282 { | 7277 { |
7283 v21 = pPlayer->pEquipment.uBow; //сначала рисуется лук | 7278 v21 = pPlayer->pEquipment.uBow; //сначала рисуется лук |
7284 if ( !v21 ) | 7279 if ( !v21 ) |
7285 goto LABEL_59; | 7280 goto LABEL_59; |
7286 v230 = pPlayer->pEquipment.uBow; | 7281 v230 = pPlayer->pEquipment.uBow; |
7287 v22 = (int)&v217->pInventoryItems[v21-1]; | 7282 v22 = (int)&pPlayer->pInventoryItems[v21-1]; |
7288 v23 = *(int *)v22; | 7283 v23 = *(int *)v22; |
7289 v24 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[v23].uEquipX; | 7284 v24 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[v23].uEquipX; |
7290 a3b = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[v23].uEquipY; | 7285 a3b = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[v23].uEquipY; |
7291 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE); | 7286 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE); |
7292 v25 = *(int *)(v22 + 20); | 7287 v25 = *(int *)(v22 + 20); |
7314 } | 7309 } |
7315 LABEL_57: | 7310 LABEL_57: |
7316 if ( !bRingsShownInCharScreen ) | 7311 if ( !bRingsShownInCharScreen ) |
7317 pRenderer->_4A612A(v24, a3b, v27, v230); | 7312 pRenderer->_4A612A(v24, a3b, v27, v230); |
7318 LABEL_59: | 7313 LABEL_59: |
7319 v31 = v217->pEquipment.uCloak;// потом плащ | 7314 v31 = pPlayer->pEquipment.uCloak;// потом плащ |
7320 if ( !v31 ) | 7315 if ( !v31 ) |
7321 goto LABEL_93; | 7316 goto LABEL_93; |
7322 v231 = v217->pEquipment.uCloak; | 7317 v231 = pPlayer->pEquipment.uCloak; |
7323 v32 = (int)&v217->pInventoryItems[v31-1]; | 7318 v32 = (int)&pPlayer->pInventoryItems[v31-1]; |
7324 v219 = v32; | 7319 v219 = v32; |
7325 if ( *(int *)v32 != 525 ) | 7320 if ( *(int *)v32 != 525 ) |
7326 { | 7321 { |
7327 switch ( *(int *)v32 ) | 7322 switch ( *(int *)v32 ) |
7328 { | 7323 { |
7366 pRenderer->_4A612A(a2c, a3c, v42, v231); | 7361 pRenderer->_4A612A(a2c, a3c, v42, v231); |
7367 LABEL_93: | 7362 LABEL_93: |
7368 v240 = 4 * uPlayerID_ - 4; | 7363 v240 = 4 * uPlayerID_ - 4; |
7369 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, | 7364 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, |
7370 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); | 7365 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); |
7371 v43 = v217->pEquipment.uBody;// потом тело | 7366 v43 = pPlayer->pEquipment.uBody;// потом тело |
7372 if ( !v43 ) | 7367 if ( !v43 ) |
7373 goto LABEL_127; | 7368 goto LABEL_127; |
7374 v232 = v217->pEquipment.uBody; | 7369 v232 = pPlayer->pEquipment.uBody; |
7375 v44 = (int)&v217->pInventoryItems[v43-1]; | 7370 v44 = (int)&pPlayer->pInventoryItems[v43-1]; |
7376 v220 = v44; | 7371 v220 = v44; |
7377 if ( *(int *)v44 != 504 ) | 7372 if ( *(int *)v44 != 504 ) |
7378 { | 7373 { |
7379 if ( *(int *)v44 == 505 ) | 7374 if ( *(int *)v44 == 505 ) |
7380 { | 7375 { |
7425 } | 7420 } |
7426 } | 7421 } |
7427 if ( !bRingsShownInCharScreen ) | 7422 if ( !bRingsShownInCharScreen ) |
7428 pRenderer->_4A612A(a2d, a3d, v54, v232); | 7423 pRenderer->_4A612A(a2d, a3d, v54, v232); |
7429 LABEL_127: | 7424 LABEL_127: |
7430 v56 = v217->pEquipment.field_20; | 7425 v56 = pPlayer->pEquipment.field_20; |
7431 if ( !v56 ) | 7426 if ( !v56 ) |
7432 goto LABEL_155; | 7427 goto LABEL_155; |
7433 v233 = v217->pEquipment.field_20; | 7428 v233 = pPlayer->pEquipment.field_20; |
7434 v57 = (int)&v217->pInventoryItems[v56-1]; | 7429 v57 = (int)&pPlayer->pInventoryItems[v56-1]; |
7435 v221 = v57; | 7430 v221 = v57; |
7436 v58 = *(int *)v57; | 7431 v58 = *(int *)v57; |
7437 if ( *(int *)v57 == 529 ) | 7432 if ( *(int *)v57 == 529 ) |
7438 { | 7433 { |
7439 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][5][1]; | 7434 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][5][1]; |
7490 } | 7485 } |
7491 } | 7486 } |
7492 if ( !bRingsShownInCharScreen ) | 7487 if ( !bRingsShownInCharScreen ) |
7493 pRenderer->_4A612A(a2e, a3e, v67, v233); | 7488 pRenderer->_4A612A(a2e, a3e, v67, v233); |
7494 LABEL_155: | 7489 LABEL_155: |
7495 v68 = v217; | 7490 v69 = pPlayer->pEquipment.uMainHand; |
7496 v69 = v217->pEquipment.uMainHand; | |
7497 uPlayerID_a = 2 * pBodyComplection; | 7491 uPlayerID_a = 2 * pBodyComplection; |
7498 if ( !v69 || (v70 = *(int *)&v217->pInventoryItems[v69-1], pItemsTable->pItems[v70].uEquipType != 1) | 7492 if ( !v69 || (v70 = *(int *)&pPlayer->pInventoryItems[v69-1], pItemsTable->pItems[v70].uEquipType != 1) |
7499 && (pItemsTable->pItems[v70].uSkillType != 4 || v217->pEquipment.uOffHand) ) | 7493 && (pItemsTable->pItems[v70].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) |
7500 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], | 7494 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], |
7501 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], | 7495 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], |
7502 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); | 7496 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); |
7503 v71 = v217->pEquipment.uBelt; | 7497 v71 = pPlayer->pEquipment.uBelt; |
7504 if ( v71 ) | 7498 if ( v71 ) |
7505 { | 7499 { |
7506 v234 = v217->pEquipment.uBelt; | 7500 v234 = pPlayer->pEquipment.uBelt; |
7507 v72 = (int)&v217->pInventoryItems[v71-1]; | 7501 v72 = (int)&pPlayer->pInventoryItems[v71-1]; |
7508 v222 = v72; | 7502 v222 = v72; |
7509 if ( *(int *)v72 == 524 ) | 7503 if ( *(int *)v72 == 524 ) |
7510 { | 7504 { |
7511 v73 = 5; | 7505 v73 = 5; |
7512 } | 7506 } |
7527 a3f = pPaperdoll_BodyY + paperdoll_Belt[0][v74][1]; | 7521 a3f = pPaperdoll_BodyY + paperdoll_Belt[0][v74][1]; |
7528 if ( IsDwarf != 1 || v73 == 5 ) | 7522 if ( IsDwarf != 1 || v73 == 5 ) |
7529 v75 = stru_511718.texids[v74]; | 7523 v75 = stru_511718.texids[v74]; |
7530 else | 7524 else |
7531 v75 = stru_511718.texids[v73 + 7 * (pBodyComplection - 2)]; | 7525 v75 = stru_511718.texids[v73 + 7 * (pBodyComplection - 2)]; |
7532 v76 = *(int *)&v217->field_1F5[36 * v71 + 15]; | 7526 v76 = *(int *)&pPlayer->field_1F5[36 * v71 + 15]; |
7533 if ( !(*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) ) | 7527 if ( !(*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) ) |
7534 { | 7528 { |
7535 v79 = v75 + 1; | 7529 v79 = v75 + 1; |
7536 v80 = (char *)&pIcons_LOD->pTextures[v75]; | 7530 v80 = (char *)&pIcons_LOD->pTextures[v75]; |
7537 if ( v76 & 2 ) | 7531 if ( v76 & 2 ) |
7538 { | 7532 { |
7552 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81); | 7546 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81); |
7553 } | 7547 } |
7554 } | 7548 } |
7555 if ( !bRingsShownInCharScreen ) | 7549 if ( !bRingsShownInCharScreen ) |
7556 pRenderer->_4A612A(a2f, a3f, v81, v234); | 7550 pRenderer->_4A612A(a2f, a3f, v81, v234); |
7557 v68 = v217; | |
7558 goto LABEL_192; | 7551 goto LABEL_192; |
7559 } | 7552 } |
7560 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) != 16 ) | 7553 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) != 16 ) |
7561 { | 7554 { |
7562 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 32 ) | 7555 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 32 ) |
7563 { | 7556 { |
7564 v172 = "sp28a"; | 7557 v172 = "sp28a"; |
7565 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7558 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7566 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 7559 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
7567 if ( dword_50C9A8 <= 0 ) | 7560 if ( dword_50C9A8 <= 0 ) |
7570 *(char *)(v222 + 20) &= 0xFu; | 7563 *(char *)(v222 + 20) &= 0xFu; |
7571 ptr_50C9A4 = 0; | 7564 ptr_50C9A4 = 0; |
7572 } | 7565 } |
7573 v78 = (double)GetTickCount() * 0.1; | 7566 v78 = (double)GetTickCount() * 0.1; |
7574 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7567 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7575 v68 = v217; | |
7576 goto LABEL_192; | 7568 goto LABEL_192; |
7577 } | 7569 } |
7578 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 64 ) | 7570 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 64 ) |
7579 { | 7571 { |
7580 v172 = "sp30a"; | 7572 v172 = "sp30a"; |
7581 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7573 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7582 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 7574 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
7583 if ( dword_50C9A8 <= 0 ) | 7575 if ( dword_50C9A8 <= 0 ) |
7586 *(char *)(v222 + 20) &= 0xFu; | 7578 *(char *)(v222 + 20) &= 0xFu; |
7587 ptr_50C9A4 = 0; | 7579 ptr_50C9A4 = 0; |
7588 } | 7580 } |
7589 v78 = (double)GetTickCount() * 0.1; | 7581 v78 = (double)GetTickCount() * 0.1; |
7590 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7582 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7591 v68 = v217; | |
7592 goto LABEL_192; | 7583 goto LABEL_192; |
7593 } | 7584 } |
7594 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 128 ) | 7585 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 128 ) |
7595 { | 7586 { |
7596 v172 = "sp91a"; | 7587 v172 = "sp91a"; |
7597 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7588 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7598 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 7589 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
7599 if ( dword_50C9A8 <= 0 ) | 7590 if ( dword_50C9A8 <= 0 ) |
7602 *(char *)(v222 + 20) &= 0xFu; | 7593 *(char *)(v222 + 20) &= 0xFu; |
7603 ptr_50C9A4 = 0; | 7594 ptr_50C9A4 = 0; |
7604 } | 7595 } |
7605 v78 = (double)GetTickCount() * 0.1; | 7596 v78 = (double)GetTickCount() * 0.1; |
7606 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7597 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7607 v68 = v217; | |
7608 goto LABEL_192; | 7598 goto LABEL_192; |
7609 } | 7599 } |
7610 } | 7600 } |
7611 v172 = "sptext01"; | 7601 v172 = "sptext01"; |
7612 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7602 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7617 *(char *)(v222 + 20) &= 0xFu; | 7607 *(char *)(v222 + 20) &= 0xFu; |
7618 ptr_50C9A4 = 0; | 7608 ptr_50C9A4 = 0; |
7619 } | 7609 } |
7620 v78 = (double)GetTickCount() * 0.1; | 7610 v78 = (double)GetTickCount() * 0.1; |
7621 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7611 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7622 v68 = v217; | |
7623 goto LABEL_192; | 7612 goto LABEL_192; |
7624 } | 7613 } |
7625 } | 7614 } |
7626 LABEL_192: | 7615 LABEL_192: |
7627 v82 = v68->pEquipment.uMainHand; | 7616 v82 = pPlayer->pEquipment.uMainHand; |
7628 if ( v82 ) | 7617 if ( v82 ) |
7629 { | 7618 { |
7630 v83 = *(int *)&v68->pInventoryItems[v82-1]; | 7619 v83 = *(int *)&pPlayer->pInventoryItems[v82-1]; |
7631 if ( pItemsTable->pItems[v83].uEquipType == 1 | 7620 if ( pItemsTable->pItems[v83].uEquipType == 1 |
7632 || pItemsTable->pItems[v83].uSkillType == 4 && !v68->pEquipment.uOffHand ) | 7621 || pItemsTable->pItems[v83].uSkillType == 4 && !pPlayer->pEquipment.uOffHand ) |
7633 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a], | 7622 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a], |
7634 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1], | 7623 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1], |
7635 (Texture *)(*(unsigned int *)((char *)papredoll_dlaus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlaus + v240)] : 0)); | 7624 (Texture *)(*(unsigned int *)((char *)papredoll_dlaus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlaus + v240)] : 0)); |
7636 } | 7625 } |
7637 v84 = v68->pEquipment.uBody; | 7626 v84 = pPlayer->pEquipment.uBody; |
7638 v235 = v84; | 7627 v235 = v84; |
7639 v85 = (int)((char *)v68 + 36 * v84); | 7628 v85 = (int)((char *)pPlayer + 36 * v84); |
7640 v242 = v85; | 7629 v242 = v85; |
7641 v86 = *(int *)(v85 + 496); | 7630 v86 = *(int *)(v85 + 496); |
7642 v87 = *(int *)(v85 + 496) - 504; | 7631 v87 = *(int *)(v85 + 496) - 504; |
7643 if ( v87 ) | 7632 if ( v87 ) |
7644 { | 7633 { |
7653 v90 = v86 - 66; | 7642 v90 = v86 - 66; |
7654 LABEL_207: | 7643 LABEL_207: |
7655 if ( v90 < 0 || v90 > 17 ) | 7644 if ( v90 < 0 || v90 > 17 ) |
7656 { | 7645 { |
7657 LABEL_259: | 7646 LABEL_259: |
7658 v111 = v68->pEquipment.uCloak; | 7647 v111 = pPlayer->pEquipment.uCloak; |
7659 if ( !v111 ) | 7648 if ( !v111 ) |
7660 goto LABEL_293; | 7649 goto LABEL_293; |
7661 v236 = v68->pEquipment.uCloak; | 7650 v236 = pPlayer->pEquipment.uCloak; |
7662 v112 = (int)&v68->pInventoryItems[v111-1]; | 7651 v112 = (int)&pPlayer->pInventoryItems[v111-1]; |
7663 v225 = v112; | 7652 v225 = v112; |
7664 v113 = *(int *)v112; | 7653 v113 = *(int *)v112; |
7665 if ( v113 != 525 ) | 7654 if ( v113 != 525 ) |
7666 { | 7655 { |
7667 switch ( v113 ) | 7656 switch ( v113 ) |
7690 a2h = pPaperdoll_BodyX + *(int *)((char *)&dword_4E56B0 + v115); | 7679 a2h = pPaperdoll_BodyX + *(int *)((char *)&dword_4E56B0 + v115); |
7691 a3h = pPaperdoll_BodyY + *(int *)((char *)&dword_4E56B4 + v115); | 7680 a3h = pPaperdoll_BodyY + *(int *)((char *)&dword_4E56B4 + v115); |
7692 if ( v116 == pIcons_LOD->FindTextureByName("pending") ) | 7681 if ( v116 == pIcons_LOD->FindTextureByName("pending") ) |
7693 { | 7682 { |
7694 LABEL_292: | 7683 LABEL_292: |
7695 v68 = v217; | |
7696 LABEL_293: | 7684 LABEL_293: |
7697 if ( v244 == 12 || v244 == 13 ) | 7685 if ( v244 == 12 || v244 == 13 ) |
7698 { | 7686 { |
7699 v122 = papredoll_dbrds[v244]; | 7687 v122 = papredoll_dbrds[v244]; |
7700 if ( v122 != pIcons_LOD->FindTextureByName("Pending") ) | 7688 if ( v122 != pIcons_LOD->FindTextureByName("Pending") ) |
7701 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * v244 - 24], | 7689 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * v244 - 24], |
7702 pPaperdoll_BodyY + pPaperdoll_Beards[2 * v244 - 23], | 7690 pPaperdoll_BodyY + pPaperdoll_Beards[2 * v244 - 23], |
7703 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0)); | 7691 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0)); |
7704 } | 7692 } |
7705 v123 = v68->pEquipment.uHelm; | 7693 v123 = pPlayer->pEquipment.uHelm; |
7706 if ( !v123 ) | 7694 if ( !v123 ) |
7707 goto LABEL_335; | 7695 goto LABEL_335; |
7708 v237 = v123; | 7696 v237 = v123; |
7709 v124 = (int)&v217->pInventoryItems[v123-1]; | 7697 v124 = (int)&pPlayer->pInventoryItems[v123-1]; |
7710 v226 = v124; | 7698 v226 = v124; |
7711 if ( *(int *)v124 != 521 ) | 7699 if ( *(int *)v124 != 521 ) |
7712 { | 7700 { |
7713 switch ( *(int *)v124 ) | 7701 switch ( *(int *)v124 ) |
7714 { | 7702 { |
7736 LABEL_312: | 7724 LABEL_312: |
7737 v126 = 2 * (v125 + 16 * pBodyComplection); | 7725 v126 = 2 * (v125 + 16 * pBodyComplection); |
7738 a2j = pPaperdoll_BodyX + dword_4E58D0[v126]; | 7726 a2j = pPaperdoll_BodyX + dword_4E58D0[v126]; |
7739 a3i = pPaperdoll_BodyY + dword_4E58D4[v126]; | 7727 a3i = pPaperdoll_BodyY + dword_4E58D4[v126]; |
7740 if ( IsDwarf != 1 || *(int *)v124 != 92 ) | 7728 if ( IsDwarf != 1 || *(int *)v124 != 92 ) |
7741 v127 = stru_511698.texids[v125 + 16 * v250]; | 7729 v127 = stru_511698.texids[v125 + 16 * pSex]; |
7742 else | 7730 else |
7743 v127 = papredoll_dbrds[11]; | 7731 v127 = papredoll_dbrds[11]; |
7744 v128 = *(int *)(v124 + 20); | 7732 v128 = *(int *)(v124 + 20); |
7745 if ( *(int *)(v124 + 20) & 0xF0 ) | 7733 if ( *(int *)(v124 + 20) & 0xF0 ) |
7746 { | 7734 { |
7830 } | 7818 } |
7831 } | 7819 } |
7832 if ( !bRingsShownInCharScreen ) | 7820 if ( !bRingsShownInCharScreen ) |
7833 pRenderer->_4A612A(a2j, a3i, v133, v237); | 7821 pRenderer->_4A612A(a2j, a3i, v133, v237); |
7834 LABEL_335: | 7822 LABEL_335: |
7835 v134 = v217->pEquipment.uMainHand; | 7823 v134 = pPlayer->pEquipment.uMainHand; |
7836 if ( !v134 ) | 7824 if ( !v134 ) |
7837 goto LABEL_358; | 7825 goto LABEL_358; |
7838 v238 = v217->pEquipment.uMainHand; | 7826 v238 = pPlayer->pEquipment.uMainHand; |
7839 v135 = (int)&v217->pInventoryItems[v134-1]; | 7827 v135 = (int)&pPlayer->pInventoryItems[v134-1]; |
7840 v227 = v135; | 7828 v227 = v135; |
7841 v136 = *(int *)v135; | 7829 v136 = *(int *)v135; |
7842 v137 = *(int *)v135; | 7830 v137 = *(int *)v135; |
7843 a2k = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v137].uEquipX; | 7831 a2k = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v137].uEquipX; |
7844 a3j = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v137].uEquipY; | 7832 a3j = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v137].uEquipY; |
7871 } | 7859 } |
7872 } | 7860 } |
7873 if ( !bRingsShownInCharScreen ) | 7861 if ( !bRingsShownInCharScreen ) |
7874 pRenderer->_4A612A(a2k, a3j, v144, v238); | 7862 pRenderer->_4A612A(a2k, a3j, v144, v238); |
7875 LABEL_358: | 7863 LABEL_358: |
7876 v145 = v217->pEquipment.uOffHand; | 7864 v145 = pPlayer->pEquipment.uOffHand; |
7877 v249 = v217->pEquipment.uOffHand; | 7865 v249 = pPlayer->pEquipment.uOffHand; |
7878 if ( !v145 ) | 7866 if ( !v145 ) |
7879 goto LABEL_393; | 7867 goto LABEL_393; |
7880 v146 = (int)&v217->pInventoryItems[v145-1]; | 7868 v146 = (int)&pPlayer->pInventoryItems[v145-1]; |
7881 v228 = v146; | 7869 v228 = v146; |
7882 v147 = *(int *)v146; | 7870 v147 = *(int *)v146; |
7883 v148 = *(int *)v146; | 7871 v148 = *(int *)v146; |
7884 v149 = pItemsTable->pItems[v148].uSkillType; | 7872 v149 = pItemsTable->pItems[v148].uSkillType; |
7885 if ( v149 != 2 && v149 != 1 ) | 7873 if ( v149 != 2 && v149 != 1 ) |
8202 } | 8190 } |
8203 v114 = 5; | 8191 v114 = 5; |
8204 goto LABEL_272; | 8192 goto LABEL_272; |
8205 } | 8193 } |
8206 LABEL_209: | 8194 LABEL_209: |
8207 if ( v68->pEquipment.uMainHand | 8195 if ( pPlayer->pEquipment.uMainHand |
8208 && (v68->GetEquippedItemEquipType(1u) == 1 | 8196 && (pPlayer->GetEquippedItemEquipType(1u) == 1 |
8209 || v68->GetEquippedItemSkillType(EQUIP_TWO_HANDED) == 4 | 8197 || pPlayer->GetEquippedItemSkillType(EQUIP_TWO_HANDED) == 4 |
8210 && !v68->pEquipment.uOffHand) ) | 8198 && !pPlayer->pEquipment.uOffHand) ) |
8211 { | 8199 { |
8212 v91 = 17 * pBodyComplection + v90; | 8200 v91 = 17 * pBodyComplection + v90; |
8213 v92 = v91; | 8201 v92 = v91; |
8214 v223 = paperdoll_array_511290[0][v91][2]; | 8202 v223 = paperdoll_array_511290[0][v91][2]; |
8215 if ( v223 == pIcons_LOD->FindTextureByName("pending") ) | 8203 if ( v223 == pIcons_LOD->FindTextureByName("pending") ) |
8225 a2g = pPaperdoll_BodyX + dword_4E5270[2 * v91]; | 8213 a2g = pPaperdoll_BodyX + dword_4E5270[2 * v91]; |
8226 v95 = dword_4E5270[2 * v91 + 1]; | 8214 v95 = dword_4E5270[2 * v91 + 1]; |
8227 } | 8215 } |
8228 a3g = pPaperdoll_BodyY + v95; | 8216 a3g = pPaperdoll_BodyY + v95; |
8229 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) | 8217 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) |
8230 { | |
8231 v68 = v217; | |
8232 goto LABEL_259; | 8218 goto LABEL_259; |
8233 } | |
8234 if ( *(int *)(v242 + 516) & 0xF0 ) | 8219 if ( *(int *)(v242 + 516) & 0xF0 ) |
8235 { | 8220 { |
8236 if ( (*(int *)(v242 + 516) & 0xF0) != 16 ) | 8221 if ( (*(int *)(v242 + 516) & 0xF0) != 16 ) |
8237 { | 8222 { |
8238 if ( (*(int *)(v242 + 516) & 0xF0) == 32 ) | 8223 if ( (*(int *)(v242 + 516) & 0xF0) == 32 ) |
8249 v187 = 255; | 8234 v187 = 255; |
8250 v174 = 0; | 8235 v174 = 0; |
8251 v97 = (double)GetTickCount(); | 8236 v97 = (double)GetTickCount(); |
8252 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8237 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8253 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8238 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8254 v68 = v217; | |
8255 goto LABEL_259; | 8239 goto LABEL_259; |
8256 } | 8240 } |
8257 if ( (*(int *)(v242 + 516) & 0xF0) == 64 ) | 8241 if ( (*(int *)(v242 + 516) & 0xF0) == 64 ) |
8258 { | 8242 { |
8259 v173 = "sp30a"; | 8243 v173 = "sp30a"; |
8268 v187 = 255; | 8252 v187 = 255; |
8269 v174 = 0; | 8253 v174 = 0; |
8270 v97 = (double)GetTickCount(); | 8254 v97 = (double)GetTickCount(); |
8271 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8255 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8272 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8256 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8273 v68 = v217; | |
8274 goto LABEL_259; | 8257 goto LABEL_259; |
8275 } | 8258 } |
8276 if ( (*(int *)(v242 + 516) & 0xF0) == 128 ) | 8259 if ( (*(int *)(v242 + 516) & 0xF0) == 128 ) |
8277 { | 8260 { |
8278 v173 = "sp91a"; | 8261 v173 = "sp91a"; |
8287 v187 = 255; | 8270 v187 = 255; |
8288 v174 = 0; | 8271 v174 = 0; |
8289 v97 = (double)GetTickCount(); | 8272 v97 = (double)GetTickCount(); |
8290 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8273 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8291 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8274 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8292 v68 = v217; | |
8293 goto LABEL_259; | 8275 goto LABEL_259; |
8294 } | 8276 } |
8295 } | 8277 } |
8296 v173 = "sptext01"; | 8278 v173 = "sptext01"; |
8297 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)]; | 8279 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)]; |
8305 v187 = 255; | 8287 v187 = 255; |
8306 v174 = 0; | 8288 v174 = 0; |
8307 v97 = (double)GetTickCount(); | 8289 v97 = (double)GetTickCount(); |
8308 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8290 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8309 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8291 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8310 v68 = v217; | |
8311 goto LABEL_259; | 8292 goto LABEL_259; |
8312 } | 8293 } |
8313 v98 = v94 + 1; | 8294 v98 = v94 + 1; |
8314 v99 = (char *)&pIcons_LOD->pTextures[v94]; | 8295 v99 = (char *)&pIcons_LOD->pTextures[v94]; |
8315 v100 = pRenderer; | 8296 v100 = pRenderer; |
8320 v175 = a3g; | 8301 v175 = a3g; |
8321 v163 = a2g; | 8302 v163 = a2g; |
8322 v100->DrawTransparentRedShade(v163, v175, v188); | 8303 v100->DrawTransparentRedShade(v163, v175, v188); |
8323 if ( !bRingsShownInCharScreen ) | 8304 if ( !bRingsShownInCharScreen ) |
8324 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8305 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8325 v68 = v217; | |
8326 goto LABEL_259; | 8306 goto LABEL_259; |
8327 } | 8307 } |
8328 if ( *(char *)(v242 + 516) & 1 ) | 8308 if ( *(char *)(v242 + 516) & 1 ) |
8329 { | 8309 { |
8330 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); | 8310 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); |
8332 v176 = a3g; | 8312 v176 = a3g; |
8333 v164 = a2g; | 8313 v164 = a2g; |
8334 pRenderer->DrawTextureTransparent(v164, v176, v189); | 8314 pRenderer->DrawTextureTransparent(v164, v176, v189); |
8335 if ( !bRingsShownInCharScreen ) | 8315 if ( !bRingsShownInCharScreen ) |
8336 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8316 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8337 v68 = v217; | |
8338 goto LABEL_259; | 8317 goto LABEL_259; |
8339 } | 8318 } |
8340 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); | 8319 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); |
8341 v190 = v101; | 8320 v190 = v101; |
8342 v177 = a3g; | 8321 v177 = a3g; |
8343 v165 = a2g; | 8322 v165 = a2g; |
8344 pRenderer->DrawTransparentGreenShade(v165, v177, v190); | 8323 pRenderer->DrawTransparentGreenShade(v165, v177, v190); |
8345 if ( !bRingsShownInCharScreen ) | 8324 if ( !bRingsShownInCharScreen ) |
8346 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8325 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8347 v68 = v217; | |
8348 goto LABEL_259; | 8326 goto LABEL_259; |
8349 } | 8327 } |
8350 v102 = 17 * pBodyComplection + v90; | 8328 v102 = 17 * pBodyComplection + v90; |
8351 v94 = paperdoll_array_511290[0][v102][1]; | 8329 v94 = paperdoll_array_511290[0][v102][1]; |
8352 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) | 8330 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) |
8353 { | |
8354 v68 = v217; | |
8355 goto LABEL_259; | 8331 goto LABEL_259; |
8356 } | |
8357 v103 = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0]; | 8332 v103 = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0]; |
8358 v104 = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1]; | 8333 v104 = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1]; |
8359 v224 = *(int *)(v242 + 516); | 8334 v224 = *(int *)(v242 + 516); |
8360 v105 = *(int *)(v242 + 516) & 0xF0; | 8335 v105 = *(int *)(v242 + 516) & 0xF0; |
8361 a2g = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0]; | 8336 a2g = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0]; |
8372 v163 = v103; | 8347 v163 = v103; |
8373 v100 = pRenderer; | 8348 v100 = pRenderer; |
8374 v100->DrawTransparentRedShade(v163, v175, v188); | 8349 v100->DrawTransparentRedShade(v163, v175, v188); |
8375 if ( !bRingsShownInCharScreen ) | 8350 if ( !bRingsShownInCharScreen ) |
8376 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8351 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8377 v68 = v217; | |
8378 goto LABEL_259; | 8352 goto LABEL_259; |
8379 } | 8353 } |
8380 if ( v224 & 1 ) | 8354 if ( v224 & 1 ) |
8381 { | 8355 { |
8382 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); | 8356 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); |
8385 v164 = v103; | 8359 v164 = v103; |
8386 v100 = pRenderer; | 8360 v100 = pRenderer; |
8387 pRenderer->DrawTextureTransparent(v164, v176, v189); | 8361 pRenderer->DrawTextureTransparent(v164, v176, v189); |
8388 if ( !bRingsShownInCharScreen ) | 8362 if ( !bRingsShownInCharScreen ) |
8389 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8363 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8390 v68 = v217; | |
8391 goto LABEL_259; | 8364 goto LABEL_259; |
8392 } | 8365 } |
8393 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); | 8366 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); |
8394 v190 = v101; | 8367 v190 = v101; |
8395 v177 = v104; | 8368 v177 = v104; |
8396 v165 = v103; | 8369 v165 = v103; |
8397 v100 = pRenderer; | 8370 v100 = pRenderer; |
8398 pRenderer->DrawTransparentGreenShade(v165, v177, v190); | 8371 pRenderer->DrawTransparentGreenShade(v165, v177, v190); |
8399 if ( !bRingsShownInCharScreen ) | 8372 if ( !bRingsShownInCharScreen ) |
8400 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8373 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8401 v68 = v217; | |
8402 goto LABEL_259; | 8374 goto LABEL_259; |
8403 } | 8375 } |
8404 v106 = v105 - 16; | 8376 v106 = v105 - 16; |
8405 if ( v106 ) | 8377 if ( v106 ) |
8406 { | 8378 { |
8419 v187 = 255; | 8391 v187 = 255; |
8420 v174 = 0; | 8392 v174 = 0; |
8421 v97 = (double)GetTickCount(); | 8393 v97 = (double)GetTickCount(); |
8422 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8394 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8423 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8395 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8424 v68 = v217; | |
8425 goto LABEL_259; | 8396 goto LABEL_259; |
8426 } | 8397 } |
8427 v108 = v107 - 32; | 8398 v108 = v107 - 32; |
8428 if ( !v108 ) | 8399 if ( !v108 ) |
8429 { | 8400 { |
8439 v187 = 255; | 8410 v187 = 255; |
8440 v174 = 0; | 8411 v174 = 0; |
8441 v97 = (double)GetTickCount(); | 8412 v97 = (double)GetTickCount(); |
8442 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8413 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8443 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8414 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8444 v68 = v217; | |
8445 goto LABEL_259; | 8415 goto LABEL_259; |
8446 } | 8416 } |
8447 if ( v108 == 64 ) | 8417 if ( v108 == 64 ) |
8448 { | 8418 { |
8449 v178 = "sp91a"; | 8419 v178 = "sp91a"; |
8458 v187 = 255; | 8428 v187 = 255; |
8459 v174 = 0; | 8429 v174 = 0; |
8460 v97 = (double)GetTickCount(); | 8430 v97 = (double)GetTickCount(); |
8461 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8431 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8462 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8432 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8463 v68 = v217; | |
8464 goto LABEL_259; | 8433 goto LABEL_259; |
8465 } | 8434 } |
8466 } | 8435 } |
8467 v178 = "sptext01"; | 8436 v178 = "sptext01"; |
8468 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)]; | 8437 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)]; |
8476 v187 = 255; | 8445 v187 = 255; |
8477 v174 = 0; | 8446 v174 = 0; |
8478 v97 = (double)GetTickCount(); | 8447 v97 = (double)GetTickCount(); |
8479 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8448 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8480 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8449 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8481 v68 = v217; | |
8482 goto LABEL_259; | 8450 goto LABEL_259; |
8483 } | 8451 } |
8484 v186 = 16; | 8452 v186 = 16; |
8485 } | 8453 } |
8486 else | 8454 else |
8804 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); | 8772 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); |
8805 if ( !bRingsShownInCharScreen ) | 8773 if ( !bRingsShownInCharScreen ) |
8806 pRenderer->_4A612A(a2, a3, | 8774 pRenderer->_4A612A(a2, a3, |
8807 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0), | 8775 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0), |
8808 pPlayer->pEquipment.uBody); | 8776 pPlayer->pEquipment.uBody); |
8809 uPlayerID_a = 2 * v5; | 8777 uPlayerID_a = 2 * pBodyComplection; |
8810 v6 = pPlayer->pEquipment.uMainHand; | 8778 v6 = pPlayer->pEquipment.uMainHand; |
8811 if ( !v6 | 8779 if ( !v6 |
8812 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1) | 8780 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1) |
8813 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) | 8781 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) |
8814 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[v5][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[v5][1], | 8782 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], |
8815 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); | 8783 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); |
8816 v8 = pPlayer->pEquipment.uMainHand; | 8784 v8 = pPlayer->pEquipment.uMainHand; |
8817 if ( v8 ) | 8785 if ( v8 ) |
8818 { | 8786 { |
8819 v229 = pPlayer->pEquipment.uMainHand; | 8787 v229 = pPlayer->pEquipment.uMainHand; |
8820 v9 = (int)&v217->pInventoryItems[v8-1]; | 8788 v9 = (int)&pPlayer->pInventoryItems[v8-1]; |
8821 v10 = v5 << 7; | 8789 v10 = pBodyComplection << 7; |
8822 v218 = v9; | 8790 v218 = v9; |
8823 v11 = *(int *)v9; | 8791 v11 = *(int *)v9; |
8824 v12 = *(int *)v9; | 8792 v12 = *(int *)v9; |
8825 v13 = pPaperdoll_BodyX + paperdoll_Weapon[v5][1][0] - pItemsTable->pItems[v12].uEquipX; | 8793 v13 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v12].uEquipX; |
8826 a2a = v13; | 8794 a2a = v13; |
8827 a3a = pPaperdoll_BodyY + *(int *)((char *)&paperdoll_Weapon[0][1][1] + v10) - pItemsTable->pItems[v12].uEquipY; | 8795 a3a = pPaperdoll_BodyY + *(int *)((char *)&paperdoll_Weapon[0][1][1] + v10) - pItemsTable->pItems[v12].uEquipY; |
8828 if ( v11 == 64 ) | 8796 if ( v11 == 64 ) |
8829 v166 = "item64v1"; | 8797 v166 = "item64v1"; |
8830 else | 8798 else |
8923 } | 8891 } |
8924 LABEL_393: | 8892 LABEL_393: |
8925 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a], | 8893 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a], |
8926 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1], | 8894 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1], |
8927 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0)); | 8895 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0)); |
8928 v161 = v217->pEquipment.uMainHand; | 8896 v161 = pPlayer->pEquipment.uMainHand; |
8929 if ( v161 ) | 8897 if ( v161 ) |
8930 { | 8898 { |
8931 v162 = *(int *)&v217->pInventoryItems[v161-1]; | 8899 v162 = *(int *)&pPlayer->pInventoryItems[v161-1]; |
8932 if ( pItemsTable->pItems[v162].uEquipType == 1 || pItemsTable->pItems[v162].uSkillType == 4 && !v217->pEquipment.uOffHand ) | 8900 if ( pItemsTable->pItems[v162].uEquipType == 1 || pItemsTable->pItems[v162].uSkillType == 4 && !pPlayer->pEquipment.uOffHand ) |
8933 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a], | 8901 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a], |
8934 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1], | 8902 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1], |
8935 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0)); | 8903 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0)); |
8936 } | 8904 } |
8937 if ( !bRingsShownInCharScreen ) | 8905 if ( !bRingsShownInCharScreen ) |