comparison mm7_4.cpp @ 762:cf2fbac6edc9

Misc cleaning
author Nomad
date Sat, 23 Mar 2013 19:47:01 +0200
parents 9f7db515a8d7
children a84db04439a4
comparison
equal deleted inserted replaced
759:b2468462a360 762:cf2fbac6edc9
7110 while ( (signed int)v8 <= (signed int)&pPlayers[4] ); 7110 while ( (signed int)v8 <= (signed int)&pPlayers[4] );
7111 return result; 7111 return result;
7112 } 7112 }
7113 7113
7114 //----- (004B1523) -------------------------------------------------------- 7114 //----- (004B1523) --------------------------------------------------------
7115 char *__thiscall sub_4B1523(int *_this) 7115 void __thiscall sub_4B1523(int *_this)
7116 { 7116 {
7117 int v1; // esi@1 7117 int v1; // esi@1
7118 int v2; // edx@1 7118 int v2; // edx@1
7119 unsigned int v3; // eax@2 7119 unsigned int v3; // eax@2
7120 int v4; // eax@4 7120 int v4; // eax@4
7176 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); 7176 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0);
7177 a1.uFrameZ = a1.uFrameX + 107; 7177 a1.uFrameZ = a1.uFrameX + 107;
7178 a1.uFrameWidth = 108; 7178 a1.uFrameWidth = 108;
7179 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u); 7179 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u);
7180 sprintf(pTmpBuf, "%s\n%d", pGlobalTXT_LocalizationStrings[522], *(&pSpellDatas[0].uNormalLevelMana + 10 * v1)); 7180 sprintf(pTmpBuf, "%s\n%d", pGlobalTXT_LocalizationStrings[522], *(&pSpellDatas[0].uNormalLevelMana + 10 * v1));
7181 return a1.DrawTitleText(pFontComic, 0xCu, a1.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, 0, pTmpBuf, 3); 7181 a1.DrawTitleText(pFontComic, 0xCu, a1.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, 0, pTmpBuf, 3);
7182 } 7182 }
7183 7183
7184 7184
7185 //----- (004B1784) -------------------------------------------------------- 7185 //----- (004B1784) --------------------------------------------------------
7186 bool __cdecl sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() 7186 bool __cdecl sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win()
8165 } 8165 }
8166 } 8166 }
8167 8167
8168 8168
8169 //----- (004B2A74) -------------------------------------------------------- 8169 //----- (004B2A74) --------------------------------------------------------
8170 char __cdecl SimpleHouseAndBoatsDialog() 8170 void SimpleHouseAndBoatsDialog()
8171 { 8171 {
8172 char *v0; // esi@3 8172 char *v0; // esi@3
8173 char *v1; // ST1C_4@3 8173 char *v1; // ST1C_4@3
8174 char *v2; // eax@3 8174 char *v2; // eax@3
8175 const char *v3; // ST1C_4@5 8175 const char *v3; // ST1C_4@5
8246 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[411], v0); 8246 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[411], v0);
8247 v2 = pTmpBuf; 8247 v2 = pTmpBuf;
8248 } 8248 }
8249 v3 = v2; 8249 v3 = v2;
8250 v4 = pFontCreate->CalcTextHeight(v2, &a1, 0, 0); 8250 v4 = pFontCreate->CalcTextHeight(v2, &a1, 0, 0);
8251 LOBYTE(i) = (unsigned int)a1.DrawTitleText(pFontCreate, 0, (212 - v4) / 2 + 101, 0, v3, 3u); 8251 a1.DrawTitleText(pFontCreate, 0, (212 - v4) / 2 + 101, 0, v3, 3u);
8252 return i; 8252 return;
8253 } 8253 }
8254 a1.uFrameWidth -= 10; 8254 a1.uFrameWidth -= 10;
8255 a1.uFrameZ -= 10; 8255 a1.uFrameZ -= 10;
8256 v58 = HouseNPCData[(unsigned int)((char *)pDialogueNPCCount + -(dword_591080 != 0) - 1)]; 8256 v58 = HouseNPCData[(unsigned int)((char *)pDialogueNPCCount + -(dword_591080 != 0) - 1)];
8257 v6 = v58; 8257 v6 = v58;
8486 352 - v48, 8486 352 - v48,
8487 (Texture *)(uTextureID_Leather != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Leather] : 0), 8487 (Texture *)(uTextureID_Leather != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Leather] : 0),
8488 (uTextureID_Leather != -1 ? pIcons_LOD->pTextures[uTextureID_Leather].uTextureHeight : 26) - v48); 8488 (uTextureID_Leather != -1 ? pIcons_LOD->pTextures[uTextureID_Leather].uTextureHeight : 26) - v48);
8489 pRenderer->DrawTextureIndexed(8u, 347 - v48, pTexture_591428); 8489 pRenderer->DrawTextureIndexed(8u, 347 - v48, pTexture_591428);
8490 v49 = FitTextInAWindow(ptr_F8B1E8, v47, &w, 0xDu, 0); 8490 v49 = FitTextInAWindow(ptr_F8B1E8, v47, &w, 0xDu, 0);
8491 LOBYTE(i) = a1.DrawText(v47, 13, 354 - v48, 0, v49, 0, 0, 0); 8491 a1.DrawText(v47, 13, 354 - v48, 0, v49, 0, 0, 0);
8492 } 8492 }
8493 return i;
8494 } 8493 }
8495 8494
8496 8495
8497 8496
8498 8497