Mercurial > mm7
comparison mm7_4.cpp @ 475:77430756f06a
fix show info item in shop
author | Gloval |
---|---|
date | Tue, 26 Feb 2013 08:47:23 +0400 |
parents | 7f1b00901cf7 |
children | d4ea191229ff |
comparison
equal
deleted
inserted
replaced
474:442afd6c34a4 | 475:77430756f06a |
---|---|
9067 int v5; // eax@12 | 9067 int v5; // eax@12 |
9068 unsigned int v6; // eax@13 | 9068 unsigned int v6; // eax@13 |
9069 ItemGen *v7; // ecx@13 | 9069 ItemGen *v7; // ecx@13 |
9070 signed int v8; // esi@17 | 9070 signed int v8; // esi@17 |
9071 unsigned int v9; // eax@19 | 9071 unsigned int v9; // eax@19 |
9072 char v10; // [sp+8h] [bp-44h]@12 | 9072 POINT v10; // [sp+8h] [bp-44h]@12 |
9073 char v11; // [sp+10h] [bp-3Ch]@12 | 9073 POINT v11; // [sp+10h] [bp-3Ch]@12 |
9074 char v12; // [sp+18h] [bp-34h]@18 | 9074 POINT v12; // [sp+18h] [bp-34h]@18 |
9075 char v13; // [sp+20h] [bp-2Ch]@17 | 9075 POINT v13; // [sp+20h] [bp-2Ch]@17 |
9076 char v14; // [sp+28h] [bp-24h]@17 | 9076 POINT v14; // [sp+28h] [bp-24h]@17 |
9077 char v15; // [sp+30h] [bp-1Ch]@17 | 9077 POINT v15; // [sp+30h] [bp-1Ch]@17 |
9078 char v16; // [sp+38h] [bp-14h]@5 | 9078 POINT v16; // [sp+38h] [bp-14h]@5 |
9079 POINT a2; // [sp+40h] [bp-Ch]@5 | 9079 POINT a2; // [sp+40h] [bp-Ch]@5 |
9080 int v18; // [sp+48h] [bp-4h]@5 | 9080 int v18; // [sp+48h] [bp-4h]@5 |
9081 | 9081 |
9082 //v0 = pPlayers[uActiveCharacter]; | 9082 //v0 = pPlayers[uActiveCharacter]; |
9083 if ( in_current_bilding_type <= 0 ) | 9083 if ( in_current_bilding_type <= 0 ) |
9088 { | 9088 { |
9089 if ( dword_F8B19C <= 2 ) | 9089 if ( dword_F8B19C <= 2 ) |
9090 return; | 9090 return; |
9091 if ( dword_F8B19C <= 5 || dword_F8B19C == 94 ) | 9091 if ( dword_F8B19C <= 5 || dword_F8B19C == 94 ) |
9092 { | 9092 { |
9093 v8 = pMouse->GetCursorPos((POINT *)&v15)->x - 14; | 9093 v8 = pMouse->GetCursorPos(&v15)->x - 14; |
9094 v18 = (v8 >> 5) + 14 * ((pMouse->GetCursorPos((POINT *)&v14)->y - 17) >> 5); | 9094 v18 = (v8 >> 5) + 14 * ((pMouse->GetCursorPos(&v14)->y - 17) >> 5); |
9095 if ( pMouse->GetCursorPos((POINT *)&v13)->x <= 13 | 9095 if ( pMouse->GetCursorPos(&v13)->x <= 13 |
9096 || pMouse->GetCursorPos((POINT *)&v12)->x >= 462 | 9096 || pMouse->GetCursorPos(&v12)->x >= 462 |
9097 || (v9 = pPlayers[uActiveCharacter]->GetItemIDAtInventoryIndex(&v18)) == 0 ) | 9097 || (v9 = pPlayers[uActiveCharacter]->GetItemIDAtInventoryIndex(&v18)) == 0 ) |
9098 return; | 9098 return; |
9099 v7 = (ItemGen *)&pPlayers[uActiveCharacter]->pInventoryItems[v9-1]; | 9099 v7 = (ItemGen *)&pPlayers[uActiveCharacter]->pInventoryItems[v9-1]; |
9100 LABEL_15: | 9100 LABEL_15: |
9101 GameUI_DrawItemInfo(v7); | 9101 GameUI_DrawItemInfo(v7); |
9102 return; | 9102 return; |
9103 } | 9103 } |
9104 if ( dword_F8B19C != 95 ) | 9104 if ( dword_F8B19C != 95 ) |
9105 return; | 9105 return; |
9106 } | 9106 } |
9107 v4 = pMouse->GetCursorPos((POINT *)&v11); | 9107 v4 = pMouse->GetCursorPos(&v11); |
9108 v5 = pRenderer->pActiveZBuffer[v4->x + pSRZBufferLineOffsets[pMouse->GetCursorPos((POINT *)&v10)->y]] & 0xFFFF; | 9108 v5 = pRenderer->pActiveZBuffer[v4->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v10)->y]] & 0xFFFF; |
9109 v18 = v5; | 9109 v18 = v5; |
9110 if ( !v5 ) | 9110 if ( !v5 ) |
9111 return; | 9111 return; |
9112 v6 = 9 * (v5 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C); | 9112 v6 = 9 * (v5 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C); |
9113 v7 = (ItemGen *)((char *)&pParty->pPickedItem + 4 * v6 + 4); | 9113 v7 = (ItemGen *)((char *)&pParty->pPickedItem + 4 * v6 + 4); |
9117 goto LABEL_15; | 9117 goto LABEL_15; |
9118 } | 9118 } |
9119 if ( in_current_bilding_type <= 16 && dword_F8B19C == 18 ) | 9119 if ( in_current_bilding_type <= 16 && dword_F8B19C == 18 ) |
9120 { | 9120 { |
9121 v1 = pMouse->GetCursorPos(&a2); | 9121 v1 = pMouse->GetCursorPos(&a2); |
9122 v2 = v1->x + pSRZBufferLineOffsets[pMouse->GetCursorPos((POINT *)&v16)->y]; | 9122 v2 = v1->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v16)->y]; |
9123 v3 = pRenderer->pActiveZBuffer[v2] & 0xFFFF; | 9123 v3 = pRenderer->pActiveZBuffer[v2] & 0xFFFF; |
9124 v18 = pRenderer->pActiveZBuffer[v2] & 0xFFFF; | 9124 v18 = pRenderer->pActiveZBuffer[v2] & 0xFFFF; |
9125 if ( v18 ) | 9125 if ( v18 ) |
9126 sub_4B1523((int *)&pParty->pPlayers[1].uExpressionTimeLength + 9 * (v3 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)); | 9126 sub_4B1523((int *)&pParty->pPlayers[1].uExpressionTimeLength + 9 * (v3 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)); |
9127 } | 9127 } |