Mercurial > mm7
comparison mm7_2.cpp @ 358:4a236657a0be
GameMenuButton fix
author | Ritor1 |
---|---|
date | Thu, 21 Feb 2013 17:23:53 +0600 |
parents | ec6cc5cefa4b |
children | 2bc1c8d68f41 |
comparison
equal
deleted
inserted
replaced
356:b9aff98467e3 | 358:4a236657a0be |
---|---|
3702 | 3702 |
3703 //----- (004BCACC) -------------------------------------------------------- | 3703 //----- (004BCACC) -------------------------------------------------------- |
3704 void __fastcall sub_4BCACC_bounties(signed int a1) | 3704 void __fastcall sub_4BCACC_bounties(signed int a1) |
3705 { | 3705 { |
3706 unsigned int v1; // edi@1 | 3706 unsigned int v1; // edi@1 |
3707 signed int v2; // ebx@1 | 3707 //signed int v2; // ebx@1 |
3708 signed int v3; // ecx@2 | 3708 //signed int v3; // ecx@2 |
3709 int v4; // eax@5 | 3709 int v4; // eax@5 |
3710 signed int v5; // esi@5 | 3710 signed int v5; // esi@5 |
3711 Player *v6; // ecx@5 | 3711 //Player *v6; // ecx@5 |
3712 signed int v7; // edx@5 | 3712 //signed int v7; // edx@5 |
3713 GUIWindow *v8; // esi@10 | 3713 GUIWindow *v8; // esi@10 |
3714 unsigned int v9; // eax@12 | 3714 unsigned int v9; // eax@12 |
3715 int v10; // esi@31 | 3715 int v10; // esi@31 |
3716 int v11; // edi@31 | 3716 int v11; // edi@31 |
3717 int v12; // esi@32 | 3717 int v12; // esi@32 |
3755 int v50; // eax@256 | 3755 int v50; // eax@256 |
3756 unsigned int v51; // eax@257 | 3756 unsigned int v51; // eax@257 |
3757 void *v52; // eax@260 | 3757 void *v52; // eax@260 |
3758 signed int v53; // edi@260 | 3758 signed int v53; // edi@260 |
3759 int v54; // eax@262 | 3759 int v54; // eax@262 |
3760 signed int v55; // [sp+10h] [bp-10h]@1 | 3760 //signed int v55; // [sp+10h] [bp-10h]@1 |
3761 int v56; // [sp+14h] [bp-Ch]@31 | 3761 int v56; // [sp+14h] [bp-Ch]@31 |
3762 | 3762 |
3763 v1 = 0; | 3763 v1 = 0; |
3764 v2 = a1; | 3764 //v2 = a1; |
3765 v55 = a1; | 3765 //v55 = a1; |
3766 if ( !pDialogueWindow->pNumPresenceButton ) | 3766 if ( !pDialogueWindow->pNumPresenceButton ) |
3767 return; | 3767 return; |
3768 pRenderer->ClearZBuffer(0, 479); | 3768 pRenderer->ClearZBuffer(0, 479); |
3769 v3 = dword_F8B198; | 3769 //v3 = dword_F8B198; |
3770 if ( dword_F8B19C != 1 ) | 3770 if ( dword_F8B19C != 1 ) |
3771 goto LABEL_13; | 3771 goto LABEL_13; |
3772 if ( dword_F8B198 == 30 ) | 3772 if ( dword_F8B198 == 30 ) |
3773 { | 3773 { |
3774 if ( v2 == 17 ) | 3774 if ( a1 == 17 ) |
3775 { | 3775 { |
3776 v4 = 0; | 3776 v4 = 0; |
3777 v5 = 0; | 3777 v5 = 0; |
3778 v6 = pPlayers[uActiveCharacter]; | 3778 //v6 = pPlayers[uActiveCharacter]; |
3779 v7 = v6->uLevel; | 3779 //v7 = pPlayers[uActiveCharacter]->uLevel; |
3780 if ( v7 > 0 ) | 3780 if ( pPlayers[uActiveCharacter]->uLevel > 0 ) |
3781 { | 3781 { |
3782 do | 3782 do |
3783 v4 += v5++ + 1; | 3783 v4 += v5++ + 1; |
3784 while ( v5 < v7 ); | 3784 while ( v5 < pPlayers[uActiveCharacter]->uLevel ); |
3785 } | 3785 } |
3786 if ( v7 < (unsigned __int16)word_4F0866[(unsigned int)window_SpeakInHouse->ptr_1C] | 3786 if ( pPlayers[uActiveCharacter]->uLevel < (unsigned __int16)word_4F0866[(unsigned int)window_SpeakInHouse->ptr_1C] |
3787 && (signed __int64)v6->uExperience < 1000 * v4 ) | 3787 && (signed __int64)pPlayers[uActiveCharacter]->uExperience < 1000 * v4 ) |
3788 return; | 3788 return; |
3789 } | 3789 } |
3790 goto LABEL_9; | 3790 goto LABEL_9; |
3791 } | 3791 } |
3792 v8 = window_SpeakInHouse; | 3792 v8 = window_SpeakInHouse; |
3793 if ( (dword_F8B198 == 27 || dword_F8B198 == 28) | 3793 if ( (dword_F8B198 == 27 || dword_F8B198 == 28) |
3794 && (v1 = 0, | 3794 && (v1 = 0, *(&byte_4F09B1[32 * (unsigned __int8)*(&byte_4F0CCF[4 * (unsigned int)window_SpeakInHouse->ptr_1C] + a1)] + pParty->uDaysPlayed % 7)) |
3795 *(&byte_4F09B1[32 * (unsigned __int8)*(&byte_4F0CCF[4 * (unsigned int)window_SpeakInHouse->ptr_1C] + v2)] | 3795 || dword_F8B198 != 23 || a1 != 10 ) |
3796 + pParty->uDaysPlayed % 7)) | |
3797 || dword_F8B198 != 23 | |
3798 || v55 != 10 ) | |
3799 { | 3796 { |
3800 LABEL_9: | 3797 LABEL_9: |
3801 pDialogueWindow->Release(); | 3798 pDialogueWindow->Release(); |
3802 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, v1, v1); | 3799 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, v1, v1); |
3803 pBtn_ExitCancel = pDialogueWindow->CreateButton( | 3800 pBtn_ExitCancel = pDialogueWindow->CreateButton(526, 445, 75, 33, 1, v1, 0x71u, v1, v1, pGlobalTXT_LocalizationStrings[74],// "End Conversation" |
3804 526, | 3801 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0), v1); |
3805 445, | |
3806 75, | |
3807 33, | |
3808 1, | |
3809 v1, | |
3810 0x71u, | |
3811 v1, | |
3812 v1, | |
3813 pGlobalTXT_LocalizationStrings[74],// "End Conversation" | |
3814 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0), | |
3815 v1); | |
3816 pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, v1, 0x51u, v1, v1, "", (Texture *)v1); | 3802 pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, v1, 0x51u, v1, v1, "", (Texture *)v1); |
3817 LABEL_10: | 3803 LABEL_10: |
3818 v3 = dword_F8B198; | 3804 //v3 = dword_F8B198; |
3819 v8 = window_SpeakInHouse; | 3805 v8 = window_SpeakInHouse; |
3820 goto LABEL_11; | 3806 goto LABEL_11; |
3821 } | 3807 } |
3822 if ( uActiveCharacter != v1 ) | 3808 if ( uActiveCharacter != v1 ) |
3823 { | 3809 { |
3824 if ( !pPlayers[uActiveCharacter]->_4B6FF9() ) | 3810 if ( !pPlayers[uActiveCharacter]->_4B6FF9() ) |
3825 return; | 3811 return; |
3826 goto LABEL_10; | 3812 goto LABEL_10; |
3827 } | 3813 } |
3828 LABEL_11: | 3814 LABEL_11: |
3829 dword_F8B19C = v55; | 3815 dword_F8B19C = a1; |
3830 if ( v3 < 19 ) | 3816 if ( dword_F8B198 < 19 ) |
3831 { | 3817 { |
3832 v9 = pIcons_LOD->LoadTexture(off_4F03B8[v3], TEXTURE_16BIT_PALETTE); | 3818 v9 = pIcons_LOD->LoadTexture(off_4F03B8[dword_F8B198], TEXTURE_16BIT_PALETTE); |
3833 v3 = dword_F8B198; | 3819 //v3 = dword_F8B198; |
3834 dword_F8B164 = &pIcons_LOD->pTextures[v9]; | 3820 dword_F8B164 = &pIcons_LOD->pTextures[v9]; |
3835 LABEL_13: | 3821 LABEL_13: |
3836 v8 = window_SpeakInHouse; | 3822 v8 = window_SpeakInHouse; |
3837 } | 3823 } |
3838 if ( v3 > 21 ) | 3824 if ( dword_F8B198 > 21 ) |
3839 { | 3825 { |
3840 if ( v3 == 22 ) | 3826 if ( dword_F8B198 == 22 ) |
3841 { | 3827 { |
3842 if ( dword_F8B19C >= 7 && dword_F8B19C <= 8 ) | 3828 if ( dword_F8B19C >= 7 && dword_F8B19C <= 8 ) |
3843 pKeyActionMap->EnterText(1, 10, v8); | 3829 pKeyActionMap->EnterText(1, 10, v8); |
3844 return; | 3830 return; |
3845 } | 3831 } |
3846 if ( v3 != 23 && v3 != 30 ) | 3832 if ( dword_F8B198 != 23 && dword_F8B198 != 30 ) |
3847 return; | 3833 return; |
3848 } | 3834 } |
3849 else | 3835 else |
3850 { | 3836 { |
3851 if ( v3 != 21 ) | 3837 if ( dword_F8B198 != 21 ) |
3852 { | 3838 { |
3853 if ( v3 <= (signed int)v1 ) | 3839 if ( dword_F8B198 <= (signed int)v1 ) |
3854 return; | 3840 return; |
3855 if ( v3 > 4 ) | 3841 if ( dword_F8B198 > 4 ) |
3856 { | 3842 { |
3857 if ( v3 <= 16 ) | 3843 if ( dword_F8B198 <= 16 ) |
3858 { | 3844 { |
3859 if ( (signed __int64)__PAIR__( | 3845 if ( (signed __int64)__PAIR__( |
3860 *(int *)&stru_AA1058[3].pSounds[8 * (unsigned int)v8->ptr_1C + 44472], | 3846 *(int *)&stru_AA1058[3].pSounds[8 * (unsigned int)v8->ptr_1C + 44472], |
3861 *(int *)&stru_AA1058[3].pSounds[8 * (unsigned int)v8->ptr_1C + 44468]) >= (signed __int64)pParty->uTimePlayed ) | 3847 *(int *)&stru_AA1058[3].pSounds[8 * (unsigned int)v8->ptr_1C + 44468]) >= (signed __int64)pParty->uTimePlayed ) |
3862 { | 3848 { |
3888 *(int *)&stru_AA1058[3].pSounds[8 * (int)v30 + 44468] = v31; | 3874 *(int *)&stru_AA1058[3].pSounds[8 * (int)v30 + 44468] = v31; |
3889 *(int *)&stru_AA1058[3].pSounds[8 * (int)v30 + 44472] = HIDWORD(v31); | 3875 *(int *)&stru_AA1058[3].pSounds[8 * (int)v30 + 44472] = HIDWORD(v31); |
3890 } | 3876 } |
3891 return; | 3877 return; |
3892 } | 3878 } |
3893 if ( v3 != 17 ) | 3879 if ( dword_F8B198 != 17 ) |
3894 return; | 3880 return; |
3895 if ( v55 == 99 ) | 3881 if ( a1 == 99 ) |
3896 { | 3882 { |
3897 v10 = (int)((char *)v8->ptr_1C - 102); | 3883 v10 = (int)((char *)v8->ptr_1C - 102); |
3898 v56 = v10; | 3884 v56 = v10; |
3899 v11 = 8 * v10 + 11325428; | 3885 v11 = 8 * v10 + 11325428; |
3900 if ( (signed __int64)__PAIR__(pParty->field_3C.field_0[2 * v10 + 1], pParty->field_3C.field_0[2 * v10]) >= (signed __int64)pParty->uTimePlayed ) | 3886 if ( (signed __int64)__PAIR__(pParty->field_3C.field_0[2 * v10 + 1], pParty->field_3C.field_0[2 * v10]) >= (signed __int64)pParty->uTimePlayed ) |
3904 else | 3890 else |
3905 { | 3891 { |
3906 v12 = v10; | 3892 v12 = v10; |
3907 v13 = 0; | 3893 v13 = 0; |
3908 pParty->field_75A[v12] = 0; | 3894 pParty->field_75A[v12] = 0; |
3909 *(_QWORD *)v11 = (signed __int64)((double)(309657600 | 3895 *(_QWORD *)v11 = (signed __int64)((double)(309657600 * (pParty->uCurrentMonth + 12i64 * pParty->uCurrentYear - 14015)) * 0.033333335); |
3910 * (pParty->uCurrentMonth + 12i64 * pParty->uCurrentYear - 14015)) | |
3911 * 0.033333335); | |
3912 v14 = rand() % 258; | 3896 v14 = rand() % 258; |
3913 v15 = window_SpeakInHouse; | 3897 v15 = window_SpeakInHouse; |
3914 pParty->field_750[v12] = v14 + 1; | 3898 pParty->field_750[v12] = v14 + 1; |
3915 v16 = (int)((char *)v15->ptr_1C - 102); | 3899 v16 = (int)((char *)v15->ptr_1C - 102); |
3916 if ( v16 ) | 3900 if ( v16 ) |
4090 v1 = 0; | 4074 v1 = 0; |
4091 dword_F8B1A4 = pNPCTopics[352].pText; | 4075 dword_F8B1A4 = pNPCTopics[352].pText; |
4092 } | 4076 } |
4093 goto LABEL_196; | 4077 goto LABEL_196; |
4094 } | 4078 } |
4095 if ( v55 == 100 ) | 4079 if ( a1 == 100 ) |
4096 { | 4080 { |
4097 pKeyActionMap->EnterText(1, 10, v8); | 4081 pKeyActionMap->EnterText(1, 10, v8); |
4098 goto LABEL_196; | 4082 goto LABEL_196; |
4099 } | 4083 } |
4100 } | 4084 } |
4101 } | 4085 } |
4102 } | 4086 } |
4103 if ( v55 > 95 ) | 4087 if ( a1 > 95 ) |
4104 { | 4088 { |
4105 LABEL_196: | 4089 LABEL_196: |
4106 switch ( v55 ) | 4090 switch ( a1 ) |
4107 { | 4091 { |
4108 case 96: | 4092 case 96: |
4109 pDialogueWindow->eWindowType = WINDOW_MainMenu; | 4093 pDialogueWindow->eWindowType = WINDOW_MainMenu; |
4110 sub_4BCA33(); | 4094 sub_4BCA33(); |
4111 sub_4B3703((void *)dword_F8B198); | 4095 sub_4B3703((void *)dword_F8B198); |
4132 dword_F8B19C = 104; | 4116 dword_F8B19C = 104; |
4133 break; | 4117 break; |
4134 } | 4118 } |
4135 return; | 4119 return; |
4136 } | 4120 } |
4137 if ( v55 != 95 && v55 != 2 ) | 4121 if ( a1 != 95 && a1 != 2 ) |
4138 { | 4122 { |
4139 if ( v55 == 3 ) | 4123 if ( a1 == 3 ) |
4140 { | 4124 { |
4141 dword_F8B19C = 3; | 4125 dword_F8B19C = 3; |
4142 } | 4126 } |
4143 else | 4127 else |
4144 { | 4128 { |
4145 if ( v55 == 4 ) | 4129 if ( a1 == 4 ) |
4146 { | 4130 { |
4147 dword_F8B19C = 4; | 4131 dword_F8B19C = 4; |
4148 } | 4132 } |
4149 else | 4133 else |
4150 { | 4134 { |
4151 if ( v55 != 5 ) | 4135 if ( a1 != 5 ) |
4152 { | 4136 { |
4153 if ( v55 > 35 ) | 4137 if ( a1 > 35 ) |
4154 { | 4138 { |
4155 if ( v55 <= 72 ) | 4139 if ( a1 <= 72 ) |
4156 { | 4140 { |
4157 v35 = pPlayers[uActiveCharacter]; | 4141 v35 = pPlayers[uActiveCharacter]; |
4158 //v36 = (signed __int64)(*(float *)&p2DEvents_minus1__24[13 * (unsigned int)v8->ptr_1C] * 500.0); | 4142 //v36 = (signed __int64)(*(float *)&p2DEvents_minus1__24[13 * (unsigned int)v8->ptr_1C] * 500.0); |
4159 v36 = (signed __int64)(p2DEvents[(unsigned int)v8->ptr_1C - 1].flt_24 * 500.0); | 4143 v36 = (signed __int64)(p2DEvents[(unsigned int)v8->ptr_1C - 1].flt_24 * 500.0); |
4160 v37 = v36 * (100 - pPlayers[uActiveCharacter]->GetMerchant()) / 100; | 4144 v37 = v36 * (100 - pPlayers[uActiveCharacter]->GetMerchant()) / 100; |
4169 //byte_4ED970_skill_learn_ability_by_class_table[v58->uClass - 1][v23 + 1] | 4153 //byte_4ED970_skill_learn_ability_by_class_table[v58->uClass - 1][v23 + 1] |
4170 | 4154 |
4171 if (false) | 4155 if (false) |
4172 //if ( *(&byte_4ED94C[37 * v35->uClass] + v55) ) | 4156 //if ( *(&byte_4ED94C[37 * v35->uClass] + v55) ) |
4173 { | 4157 { |
4174 v38 = (int)(&v35->uIntelligence + v55); | 4158 v38 = (int)(&v35->uIntelligence + a1); |
4175 if ( !*(short *)v38 ) | 4159 if ( !*(short *)v38 ) |
4176 { | 4160 { |
4177 if ( pParty->uNumGold < v37 ) | 4161 if ( pParty->uNumGold < v37 ) |
4178 { | 4162 { |
4179 ShowStatusBarString(pGlobalTXT_LocalizationStrings[155], 2u); | 4163 ShowStatusBarString(pGlobalTXT_LocalizationStrings[155], 2u); |
4193 } | 4177 } |
4194 } | 4178 } |
4195 } | 4179 } |
4196 else | 4180 else |
4197 { | 4181 { |
4198 if ( v55 == 94 ) | 4182 if ( a1 == 94 ) |
4199 { | 4183 { |
4200 pDialogueWindow->eWindowType = WINDOW_MainMenu; | 4184 pDialogueWindow->eWindowType = WINDOW_MainMenu; |
4201 sub_4BCA33(); | 4185 sub_4BCA33(); |
4202 sub_4B3AD4(dword_F8B198); | 4186 sub_4B3AD4(dword_F8B198); |
4203 } | 4187 } |
4217 { | 4201 { |
4218 GenerateShopItems(); | 4202 GenerateShopItems(); |
4219 sub_4B8F94(); | 4203 sub_4B8F94(); |
4220 v8 = window_SpeakInHouse; | 4204 v8 = window_SpeakInHouse; |
4221 v40 = window_SpeakInHouse->ptr_1C; | 4205 v40 = window_SpeakInHouse->ptr_1C; |
4222 v3 = dword_F8B198; | 4206 //v3 = dword_F8B198; |
4223 v41 = pParty->uTimePlayed | 4207 v41 = pParty->uTimePlayed |
4224 //+ (signed __int64)((double)(11059200 * (signed int)p2DEvents_minus1[26 * (unsigned int)ptr_507BC0->ptr_1C]) | 4208 //+ (signed __int64)((double)(11059200 * (signed int)p2DEvents_minus1[26 * (unsigned int)ptr_507BC0->ptr_1C]) |
4225 + (signed __int64)((double)(11059200 * (signed int)p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].field_1C) | 4209 + (signed __int64)((double)(11059200 * (signed int)p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].field_1C) |
4226 * 0.033333335); | 4210 * 0.033333335); |
4227 pParty->field_3C.field_50[2 * (int)v40] = v41; | 4211 pParty->field_3C.field_50[2 * (int)v40] = v41; |
4229 } | 4213 } |
4230 v42 = v8->ptr_1C; | 4214 v42 = v8->ptr_1C; |
4231 v43 = 0; | 4215 v43 = 0; |
4232 //v44 = p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]; | 4216 //v44 = p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]; |
4233 v44 = p2DEvents[(unsigned int)v8->ptr_1C - 1].uType; | 4217 v44 = p2DEvents[(unsigned int)v8->ptr_1C - 1].uType; |
4234 if ( v55 == 2 ) | 4218 if ( a1 == 2 ) |
4235 { | 4219 { |
4236 if ( _4F063C_smthn_by_2da_uType[v44] ) | 4220 if ( _4F063C_smthn_by_2da_uType[v44] ) |
4237 { | 4221 { |
4238 do | 4222 do |
4239 { | 4223 { |
4240 v45 = pParty->field_777C[9 * (v43 + 12 * (int)v42)]; | 4224 v45 = pParty->field_777C[9 * (v43 + 12 * (int)v42)]; |
4241 if ( v45 ) | 4225 if ( v45 ) |
4242 { | 4226 { |
4243 v46 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v45].pIconName, TEXTURE_16BIT_PALETTE); | 4227 v46 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v45].pIconName, TEXTURE_16BIT_PALETTE); |
4244 v3 = dword_F8B198; | 4228 //v3 = dword_F8B198; |
4245 v8 = window_SpeakInHouse; | 4229 v8 = window_SpeakInHouse; |
4246 dword_F8B168[v43] = &pIcons_LOD->pTextures[v46]; | 4230 dword_F8B168[v43] = &pIcons_LOD->pTextures[v46]; |
4247 } | 4231 } |
4248 v42 = v8->ptr_1C; | 4232 v42 = v8->ptr_1C; |
4249 ++v43; | 4233 ++v43; |
4250 } | 4234 } |
4251 //while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ); | 4235 //while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ); |
4252 while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ); | 4236 while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ); |
4253 } | 4237 } |
4254 if ( v3 == 1 ) | 4238 if ( dword_F8B198 == 1 ) |
4255 { | 4239 { |
4256 v47 = v8->ptr_1C; | 4240 v47 = v8->ptr_1C; |
4257 v48 = 0; | 4241 v48 = 0; |
4258 //if ( _4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ) | 4242 //if ( _4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ) |
4259 if ( _4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ) | 4243 if ( _4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ) |
4282 { | 4266 { |
4283 v50 = pParty->field_C59C[9 * (v43 + 12 * (int)v42) + 724]; | 4267 v50 = pParty->field_C59C[9 * (v43 + 12 * (int)v42) + 724]; |
4284 if ( v50 ) | 4268 if ( v50 ) |
4285 { | 4269 { |
4286 v51 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v50].pIconName, TEXTURE_16BIT_PALETTE); | 4270 v51 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v50].pIconName, TEXTURE_16BIT_PALETTE); |
4287 v3 = dword_F8B198; | 4271 //v3 = dword_F8B198; |
4288 v8 = window_SpeakInHouse; | 4272 v8 = window_SpeakInHouse; |
4289 dword_F8B168[v43] = &pIcons_LOD->pTextures[v51]; | 4273 dword_F8B168[v43] = &pIcons_LOD->pTextures[v51]; |
4290 } | 4274 } |
4291 v42 = v8->ptr_1C; | 4275 v42 = v8->ptr_1C; |
4292 ++v43; | 4276 ++v43; |
4293 } | 4277 } |
4294 //while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ); | 4278 //while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ); |
4295 while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ); | 4279 while ( v43 < (unsigned __int8)_4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ); |
4296 } | 4280 } |
4297 if ( v3 == 1 ) | 4281 if ( dword_F8B198 == 1 ) |
4298 { | 4282 { |
4299 v52 = v8->ptr_1C; | 4283 v52 = v8->ptr_1C; |
4300 v53 = 0; | 4284 v53 = 0; |
4301 //if ( _4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ) | 4285 //if ( _4F063C_smthn_by_2da_uType[p2DEvents_minus1___00[26 * (unsigned int)v8->ptr_1C]] ) |
4302 if ( _4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ) | 4286 if ( _4F063C_smthn_by_2da_uType[p2DEvents[(unsigned int)v8->ptr_1C - 1].uType] ) |