comparison mm7_4.cpp @ 358:4a236657a0be

GameMenuButton fix
author Ritor1
date Thu, 21 Feb 2013 17:23:53 +0600
parents bbf8efb5bfee
children b803545c1b96
comparison
equal deleted inserted replaced
356:b9aff98467e3 358:4a236657a0be
9060 9060
9061 9061
9062 //----- (004B1A2D) -------------------------------------------------------- 9062 //----- (004B1A2D) --------------------------------------------------------
9063 void __cdecl sub_4B1A2D() 9063 void __cdecl sub_4B1A2D()
9064 { 9064 {
9065 Player *v0; // edi@1 9065 //Player *v0; // edi@1
9066 POINT *v1; // esi@5 9066 POINT *v1; // esi@5
9067 unsigned int v2; // eax@5 9067 unsigned int v2; // eax@5
9068 int v3; // ecx@5 9068 int v3; // ecx@5
9069 POINT *v4; // esi@12 9069 POINT *v4; // esi@12
9070 int v5; // eax@12 9070 int v5; // eax@12
9080 char v15; // [sp+30h] [bp-1Ch]@17 9080 char v15; // [sp+30h] [bp-1Ch]@17
9081 char v16; // [sp+38h] [bp-14h]@5 9081 char v16; // [sp+38h] [bp-14h]@5
9082 POINT a2; // [sp+40h] [bp-Ch]@5 9082 POINT a2; // [sp+40h] [bp-Ch]@5
9083 int v18; // [sp+48h] [bp-4h]@5 9083 int v18; // [sp+48h] [bp-4h]@5
9084 9084
9085 v0 = pPlayers[uActiveCharacter]; 9085 //v0 = pPlayers[uActiveCharacter];
9086 if ( dword_F8B198 <= 0 ) 9086 if ( dword_F8B198 <= 0 )
9087 return; 9087 return;
9088 if ( dword_F8B198 <= 4 ) 9088 if ( dword_F8B198 <= 4 )
9089 { 9089 {
9090 if ( dword_F8B19C != 2 ) 9090 if ( dword_F8B19C != 2 )
9095 { 9095 {
9096 v8 = pMouse->GetCursorPos((POINT *)&v15)->x - 14; 9096 v8 = pMouse->GetCursorPos((POINT *)&v15)->x - 14;
9097 v18 = (v8 >> 5) + 14 * ((pMouse->GetCursorPos((POINT *)&v14)->y - 17) >> 5); 9097 v18 = (v8 >> 5) + 14 * ((pMouse->GetCursorPos((POINT *)&v14)->y - 17) >> 5);
9098 if ( pMouse->GetCursorPos((POINT *)&v13)->x <= 13 9098 if ( pMouse->GetCursorPos((POINT *)&v13)->x <= 13
9099 || pMouse->GetCursorPos((POINT *)&v12)->x >= 462 9099 || pMouse->GetCursorPos((POINT *)&v12)->x >= 462
9100 || (v9 = v0->GetItemIDAtInventoryIndex(&v18)) == 0 ) 9100 || (v9 = pPlayers[uActiveCharacter]->GetItemIDAtInventoryIndex(&v18)) == 0 )
9101 return; 9101 return;
9102 v7 = (ItemGen *)&v0->pInventoryItems[v9-1]; 9102 v7 = (ItemGen *)&pPlayers[uActiveCharacter]->pInventoryItems[v9-1];
9103 LABEL_15: 9103 LABEL_15:
9104 GameUI_DrawItemInfo(v7); 9104 GameUI_DrawItemInfo(v7);
9105 return; 9105 return;
9106 } 9106 }
9107 if ( dword_F8B19C != 95 ) 9107 if ( dword_F8B19C != 95 )