comparison mm7_1.cpp @ 499:511e3a6f587a

m
author Ritor1
date Thu, 28 Feb 2013 10:34:14 +0600
parents 4bd56919f075
children 63b171359be2
comparison
equal deleted inserted replaced
498:89e360b3a0fd 499:511e3a6f587a
2924 } 2924 }
2925 if ( (signed int)v116 > (signed int)v106.uViewportZ ) 2925 if ( (signed int)v116 > (signed int)v106.uViewportZ )
2926 v116 = v106.uViewportZ; 2926 v116 = v106.uViewportZ;
2927 if ( v119 > (signed int)v106.uViewportW ) 2927 if ( v119 > (signed int)v106.uViewportW )
2928 v119 = v106.uViewportW; 2928 v119 = v106.uViewportW;
2929 pRenderer->FillRectFast( 2929 pRenderer->FillRectFast(v106.uViewportX, v106.uViewportY, v106.uViewportZ - v106.uViewportX, v106.uViewportW - v106.uViewportY,
2930 v106.uViewportX,
2931 v106.uViewportY,
2932 v106.uViewportZ - v106.uViewportX,
2933 v106.uViewportW - v106.uViewportY,
2934 pRenderer->uTargetBMask | pRenderer->uTargetGMask); 2930 pRenderer->uTargetBMask | pRenderer->uTargetGMask);
2935 pRenderer->FillRectFast( 2931 pRenderer->FillRectFast(v106.uViewportX, v106.uViewportY, v106.uViewportZ - v106.uViewportX, v106.uViewportW - v106.uViewportY,
2936 v106.uViewportX,
2937 v106.uViewportY,
2938 v106.uViewportZ - v106.uViewportX,
2939 v106.uViewportW - v106.uViewportY,
2940 pRenderer->uTargetBMask | pRenderer->uTargetGMask); 2932 pRenderer->uTargetBMask | pRenderer->uTargetGMask);
2941 v84.left = v106.uViewportX; 2933 v84.left = v106.uViewportX;
2942 v84.top = v106.uViewportY; 2934 v84.top = v106.uViewportY;
2943 v84.right = v106.uViewportZ; 2935 v84.right = v106.uViewportZ;
2944 v84.bottom = v106.uViewportW; 2936 v84.bottom = v106.uViewportW;
3018 v111 = (unsigned int)((char *)a2 + v31); 3010 v111 = (unsigned int)((char *)a2 + v31);
3019 for ( i = v107 - (int)a4; ; v32 = i ) 3011 for ( i = v107 - (int)a4; ; v32 = i )
3020 { 3012 {
3021 v110 = (LPVOID)((pDesc.lPitch >> 1) * pDesc.dwHeight * v111 / v13->uAreaHeight); 3013 v110 = (LPVOID)((pDesc.lPitch >> 1) * pDesc.dwHeight * v111 / v13->uAreaHeight);
3022 v33 = v108[(int)((char *)v110 + pDesc.dwWidth * (v32 + v124) / v13->uAreaWidth)]; 3014 v33 = v108[(int)((char *)v110 + pDesc.dwWidth * (v32 + v124) / v13->uAreaWidth)];
3023 v34 = v33 & 0x1F | 2 3015 v34 = v33 & 0x1F | 2 * (unsigned __int16)(v108[(int)((char *)v110 + pDesc.dwWidth * (v32 + v124++) / v13->uAreaWidth)] & 0xFFE0);
3024 * (unsigned __int16)(v108[(int)((char *)v110
3025 + pDesc.dwWidth * (v32 + v124++) / v13->uAreaWidth)] & 0xFFE0);
3026 v35 = v124; 3016 v35 = v124;
3027 *(short *)v30 = v34; 3017 *(short *)v30 = v34;
3028 v30 += 2; 3018 v30 += 2;
3029 if ( v35 >= (signed int)v116 ) 3019 if ( v35 >= (signed int)v116 )
3030 break; 3020 break;
3043 } 3033 }
3044 } 3034 }
3045 } 3035 }
3046 else 3036 else
3047 { 3037 {
3048 pRenderer->FillRectFast( 3038 pRenderer->FillRectFast(v106.uViewportX, v106.uViewportY, v106.uViewportZ - v106.uViewportX, v106.uViewportW - v106.uViewportY, 0);
3049 v106.uViewportX,
3050 v106.uViewportY,
3051 v106.uViewportZ - v106.uViewportX,
3052 v106.uViewportW - v106.uViewportY,
3053 0);
3054 v36 = v10->pHwSpriteIDs[0]; 3039 v36 = v10->pHwSpriteIDs[0];
3055 if ( v36 >= 0 ) 3040 if ( v36 >= 0 )
3056 pSprites_LOD->pSpriteHeaders[v36]._4ACC38(&v106, 0); 3041 pSprites_LOD->pSpriteHeaders[v36]._4ACC38(&v106, 0);
3057 } 3042 }
3058 if ( v121->uNPC_ID ) 3043 if ( v121->uNPC_ID )
3095 else 3080 else
3096 { 3081 {
3097 LOBYTE(v40) = pPlayers[uActiveCharacter]->GetActualSkillLevel(PLAYER_SKILL_MONSTER_ID); 3082 LOBYTE(v40) = pPlayers[uActiveCharacter]->GetActualSkillLevel(PLAYER_SKILL_MONSTER_ID);
3098 v120 = v40; 3083 v120 = v40;
3099 if ( !v40 ) 3084 if ( !v40 )
3100 v45 = 1; 3085 v45 = 1;
3101 else 3086 else
3102 { 3087 {
3103 v41 = (unsigned __int8)v40 & 0x3F; 3088 v41 = (unsigned __int8)v40 & 0x3F;
3104 v42 = SkillToMastery((unsigned __int16)v40) - 1; 3089 v42 = SkillToMastery((unsigned __int16)v40) - 1;
3105 if ( !v42 ) 3090 if ( !v42 )
3108 { 3093 {
3109 v45 = 1; 3094 v45 = 1;
3110 v119 = 1; 3095 v119 = 1;
3111 } 3096 }
3112 else 3097 else
3113 v45 = 1; 3098 v45 = 1;
3114 } 3099 }
3115 else 3100 else
3116 { 3101 {
3117 v43 = v42 - 1; 3102 v43 = v42 - 1;
3118 if ( !v43 ) 3103 if ( !v43 )
3372 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, v95[v121->pMonsterInfo.uAttack1Type]); 3357 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, v95[v121->pMonsterInfo.uAttack1Type]);
3373 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3358 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3374 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; 3359 a4 = &a4[LOBYTE(v56->uFontHeight) - 3];
3375 v57 = v121->pMonsterInfo.uAttack1DamageBonus; 3360 v57 = v121->pMonsterInfo.uAttack1DamageBonus;
3376 if ( v57 ) 3361 if ( v57 )
3377 sprintf( 3362 sprintf(pTmpBuf, "%s\f%05u\t080%dd%d+%d\n", pGlobalTXT_LocalizationStrings[53],
3378 pTmpBuf, 3363 0, v121->pMonsterInfo.uAttack1DamageDiceRolls, v121->pMonsterInfo.uAttack1DamageDiceSides, v57);
3379 "%s\f%05u\t080%dd%d+%d\n",
3380 pGlobalTXT_LocalizationStrings[53],
3381 0,
3382 v121->pMonsterInfo.uAttack1DamageDiceRolls,
3383 v121->pMonsterInfo.uAttack1DamageDiceSides,
3384 v57);
3385 else 3364 else
3386 sprintf( 3365 sprintf(pTmpBuf, "%s\f%05u\t080%dd%d\n", pGlobalTXT_LocalizationStrings[53],
3387 pTmpBuf, 3366 0, v121->pMonsterInfo.uAttack1DamageDiceRolls, v121->pMonsterInfo.uAttack1DamageDiceSides);
3388 "%s\f%05u\t080%dd%d\n",
3389 pGlobalTXT_LocalizationStrings[53],
3390 0,
3391 v121->pMonsterInfo.uAttack1DamageDiceRolls,
3392 v121->pMonsterInfo.uAttack1DamageDiceSides);
3393 } 3367 }
3394 else 3368 else
3395 { 3369 {
3396 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, pGlobalTXT_LocalizationStrings[630]); 3370 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, pGlobalTXT_LocalizationStrings[630]);
3397 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3371 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3508 } 3482 }
3509 if ( (signed __int64)pParty->pPartyBuffs[3].uExpireTime > 0 ) 3483 if ( (signed __int64)pParty->pPartyBuffs[3].uExpireTime > 0 )
3510 { 3484 {
3511 sprintf(pTmpBuf, "%s: %d", pGlobalTXT_LocalizationStrings[650], v121->sCurrentHP); 3485 sprintf(pTmpBuf, "%s: %d", pGlobalTXT_LocalizationStrings[650], v121->sCurrentHP);
3512 pFontSmallnum->GetLineWidth(pTmpBuf); 3486 pFontSmallnum->GetLineWidth(pTmpBuf);
3513 result = a1->DrawTitleText( 3487 result = a1->DrawTitleText(pFontSmallnum, 0, a1->uFrameHeight - LOBYTE(pFontSmallnum->uFontHeight) - 12, 0, pTmpBuf, 3);
3514 pFontSmallnum,
3515 0,
3516 a1->uFrameHeight - LOBYTE(pFontSmallnum->uFontHeight) - 12,
3517 0,
3518 pTmpBuf,
3519 3u);
3520 } 3488 }
3521 return result; 3489 return result;
3522 } 3490 }
3523 3491
3524 //----- (0041F54A) -------------------------------------------------------- 3492 //----- (0041F54A) --------------------------------------------------------