comparison mm7_2.cpp @ 89:98cd93e14777

pointer fixes
author zipi
date Wed, 06 Feb 2013 21:19:42 +0000
parents 1faa29fd4c2d
children d61f6bc04bf2
comparison
equal deleted inserted replaced
88:7bdf8f1150eb 89:98cd93e14777
5065 //----- (004BF91E) -------------------------------------------------------- 5065 //----- (004BF91E) --------------------------------------------------------
5066 unsigned int __thiscall GameOverMenu(void *ecx0) 5066 unsigned int __thiscall GameOverMenu(void *ecx0)
5067 { 5067 {
5068 char *v1; // eax@2 5068 char *v1; // eax@2
5069 unsigned int result; // eax@3 5069 unsigned int result; // eax@3
5070 char *v3; // eax@7 5070 Player *v3; // eax@7
5071 char *v4; // ST24_4@9 5071 char *v4; // ST24_4@9
5072 int v5; // eax@9 5072 int v5; // eax@9
5073 char *v6; // eax@10 5073 char *v6; // eax@10
5074 char *v7; // edx@10 5074 char *v7; // edx@10
5075 char *v8; // ecx@12 5075 char *v8; // ecx@12
5082 char *pInString; // [sp+ACh] [bp-24h]@5 5082 char *pInString; // [sp+ACh] [bp-24h]@5
5083 unsigned int v17; // [sp+B0h] [bp-20h]@5 5083 unsigned int v17; // [sp+B0h] [bp-20h]@5
5084 unsigned int v18; // [sp+B4h] [bp-1Ch]@5 5084 unsigned int v18; // [sp+B4h] [bp-1Ch]@5
5085 unsigned int v19; // [sp+B8h] [bp-18h]@5 5085 unsigned int v19; // [sp+B8h] [bp-18h]@5
5086 int v20; // [sp+BCh] [bp-14h]@7 5086 int v20; // [sp+BCh] [bp-14h]@7
5087 int i; // [sp+C0h] [bp-10h]@7 5087 Player *i; // [sp+C0h] [bp-10h]@7
5088 GUIFont *pFont; // [sp+C4h] [bp-Ch]@1 5088 GUIFont *pFont; // [sp+C4h] [bp-Ch]@1
5089 unsigned __int64 v23; // [sp+C8h] [bp-8h]@5 5089 unsigned __int64 v23; // [sp+C8h] [bp-8h]@5
5090 5090
5091 v15 = ecx0; 5091 v15 = ecx0;
5092 5092
5136 v17 = v19 % 0x1C; 5136 v17 = v19 % 0x1C;
5137 if ( !v19 ) 5137 if ( !v19 )
5138 v19 = 1; 5138 v19 = 1;
5139 pRenderer->BeginScene(); 5139 pRenderer->BeginScene();
5140 pWindow.DrawTitleText(pFont, 1u, 0x23u, 1u, pGlobalTXT_LocalizationStrings[9], 3u); 5140 pWindow.DrawTitleText(pFont, 1u, 0x23u, 1u, pGlobalTXT_LocalizationStrings[9], 3u);
5141 v3 = pParty->pPlayers[0].pName; 5141 v3 = pParty->pPlayers;//[0].pName;
5142 v23 = 0i64; 5142 v23 = 0i64;
5143 v20 = 0; 5143 v20 = 0;
5144 for ( i = (int)pParty->pPlayers[0].pName; ; v3 = (char *)i ) 5144 //for ( i = (int)pParty->pPlayers[0].pName; ; v3 = (char *)i )
5145 { 5145 for ( i = pParty->pPlayers; ; v3 = i )
5146 v4 = pClassNames[(unsigned __int8)v3[17]]; 5146 {
5147 v5 = ((Player *)(v3 - 168))->GetBaseLevel(); 5147 v4 = pClassNames[v3->uClass];
5148 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[129], i, v5, v4); 5148 v5 = v3->GetBaseLevel();
5149 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[129], i->pName, v5, v4);
5149 pWindow.DrawTitleText( 5150 pWindow.DrawTitleText(
5150 pFont, 5151 pFont,
5151 1u, 5152 1u,
5152 v20 * (LOBYTE(pFont->uFontHeight) - 2) + LOBYTE(pFont->uFontHeight) + 46, 5153 v20 * (LOBYTE(pFont->uFontHeight) - 2) + LOBYTE(pFont->uFontHeight) + 46,
5153 1u, 5154 1u,
5154 pTmpBuf, 5155 pTmpBuf,
5155 3u); 5156 3u);
5156 v23 += __PAIR__(*(int *)(i - 4), *(int *)(i - 8)); 5157 v23 += i->uExperience;//__PAIR__(*(int *)(i - 4), *(int *)(i - 8));
5157 ++v20; 5158 ++v20;
5158 i += 6972; 5159 ++i;
5159 if ( i >= (signed int)&pParty->pPickedItem.uNumCharges ) 5160 if ( i > &pParty->pPlayers[3] )
5160 break; 5161 break;
5161 } 5162 }
5162 v23 = (signed __int64)v23 / v19; 5163 v23 = (signed __int64)v23 / v19;
5163 v6 = FitTextInAWindow(pInString, pFont, &pWindow, 0xCu, 0); 5164 v6 = FitTextInAWindow(pInString, pFont, &pWindow, 0xCu, 0);
5164 pWindow.DrawTitleText(pFont, 1u, 5 * (LOBYTE(pFont->uFontHeight) + 11), 1u, v6, 0); 5165 pWindow.DrawTitleText(pFont, 1u, 5 * (LOBYTE(pFont->uFontHeight) + 11), 1u, v6, 0);