Mercurial > mm7
comparison mm7_4.cpp @ 956:e9292c58644a
Слияние
author | Ritor1 |
---|---|
date | Thu, 02 May 2013 11:03:26 +0600 |
parents | 21cc2b274220 c0d0656aa662 |
children | d7f0572335ec |
comparison
equal
deleted
inserted
replaced
955:21cc2b274220 | 956:e9292c58644a |
---|---|
26 #include "Chest.h" | 26 #include "Chest.h" |
27 #include "PaletteManager.h" | 27 #include "PaletteManager.h" |
28 #include "DecorationList.h" | 28 #include "DecorationList.h" |
29 #include "SaveLoad.h" | 29 #include "SaveLoad.h" |
30 #include "stru123.h" | 30 #include "stru123.h" |
31 #include "stru287.h" | |
32 #include "Time.h" | 31 #include "Time.h" |
33 #include "IconFrameTable.h" | 32 #include "IconFrameTable.h" |
34 #include "GUIProgressBar.h" | 33 #include "GUIProgressBar.h" |
35 #include "Bink_Smacker.h" | 34 #include "Bink_Smacker.h" |
36 #include "TileFrameTable.h" | 35 #include "TileFrameTable.h" |
37 #include "PlayerFrameTable.h" | 36 #include "PlayerFrameTable.h" |
38 #include "Awards.h" | 37 #include "Awards.h" |
39 #include "Autonotes.h" | 38 #include "Autonotes.h" |
40 #include "stru160.h" | 39 #include "stru160.h" |
41 #include "stru279.h" | |
42 #include "TurnEngine.h" | 40 #include "TurnEngine.h" |
43 #include "FactionTable.h" | 41 #include "FactionTable.h" |
44 #include "StorylineTextTable.h" | 42 #include "StorylineTextTable.h" |
45 #include "Random.h" | 43 #include "Random.h" |
46 #include "stru277.h" | 44 #include "CastSpellInfo.h" |
47 #include "stru298.h" | 45 #include "stru298.h" |
48 #include "stru12.h" | 46 #include "stru12.h" |
49 #include "stru351.h" | |
50 #include "Events2D.h" | 47 #include "Events2D.h" |
51 #include "stru159.h" | 48 #include "stru159.h" |
52 #include "texts.h" | 49 #include "texts.h" |
53 #include "Log.h" | 50 #include "Log.h" |
54 #include "UIHouses.h" | 51 #include "UIHouses.h" |
2101 LOWORD(v10) = 0; | 2098 LOWORD(v10) = 0; |
2102 } | 2099 } |
2103 else | 2100 else |
2104 { | 2101 { |
2105 v11 = &pObjectList->pObjects->uObjectID; | 2102 v11 = &pObjectList->pObjects->uObjectID; |
2106 while ( stru_4E3ACC[8].field_0 != *v11 ) | 2103 while ( stru_4E3ACC[8].uType != *v11 ) |
2107 { | 2104 { |
2108 ++v10; | 2105 ++v10; |
2109 v11 += 28; | 2106 v11 += 28; |
2110 if ( v10 >= (signed int)pObjectList->uNumObjects ) | 2107 if ( v10 >= (signed int)pObjectList->uNumObjects ) |
2111 goto LABEL_19; | 2108 goto LABEL_19; |
3486 if ( IsBadStringPtrA(lpsz, 1u) ) | 3483 if ( IsBadStringPtrA(lpsz, 1u) ) |
3487 return "Invalid String Passed"; | 3484 return "Invalid String Passed"; |
3488 | 3485 |
3489 a1[0] = 0; | 3486 a1[0] = 0; |
3490 pPlayer = &pParty->pPlayers[v6]; | 3487 pPlayer = &pParty->pPlayers[v6]; |
3491 v59 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(255, 255, 155); | 3488 v59 = TargetColor(255, 255, 155); |
3492 //v61 = pPlayer; | 3489 //v61 = pPlayer; |
3493 memset(pTmpBuf2, 0, sizeof(pTmpBuf2)); | 3490 memset(pTmpBuf2, 0, sizeof(pTmpBuf2)); |
3494 | 3491 |
3495 NPCData *npc = nullptr; | 3492 NPCData *npc = nullptr; |
3496 if ( dword_5C35D4 ) | 3493 if ( dword_5C35D4 ) |
6219 a1.uFrameWidth -= 12; | 6216 a1.uFrameWidth -= 12; |
6220 a1.uFrameHeight -= 12; | 6217 a1.uFrameHeight -= 12; |
6221 v7 = pSpellStats->pInfos[v1].pName; | 6218 v7 = pSpellStats->pInfos[v1].pName; |
6222 a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1; | 6219 a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1; |
6223 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; | 6220 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; |
6224 v8 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 6221 v8 = TargetColor(0xFFu, 0xFFu, 0x9Bu); |
6225 a1.DrawTitleText(pFontArrus, 0x78u, 0xCu, v8, v7, 3u); | 6222 a1.DrawTitleText(pFontArrus, 0x78u, 0xCu, v8, v7, 3u); |
6226 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); | 6223 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); |
6227 a1.uFrameZ = a1.uFrameX + 107; | 6224 a1.uFrameZ = a1.uFrameX + 107; |
6228 a1.uFrameWidth = 108; | 6225 a1.uFrameWidth = 108; |
6229 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u); | 6226 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u); |
6254 v4.uFrameWidth = 148; | 6251 v4.uFrameWidth = 148; |
6255 v4.uFrameZ = 334; | 6252 v4.uFrameZ = 334; |
6256 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// | 6253 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// |
6257 // "%s is in no condition to %s" | 6254 // "%s is in no condition to %s" |
6258 // "do anything" | 6255 // "do anything" |
6259 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(255, 255, 0x9Bu); | 6256 v2 = TargetColor(255, 255, 0x9Bu); |
6260 v3 = pFontArrus->CalcTextHeight(pTmpBuf, &v4, 0, 0); | 6257 v3 = pFontArrus->CalcTextHeight(pTmpBuf, &v4, 0, 0); |
6261 v4.DrawTitleText(pFontArrus, 0, (212 - v3) / 2 + 101, v2, pTmpBuf, 3u); | 6258 v4.DrawTitleText(pFontArrus, 0, (212 - v3) / 2 + 101, v2, pTmpBuf, 3u); |
6262 result = 0; | 6259 result = 0; |
6263 } | 6260 } |
6264 return result; | 6261 return result; |
7332 } | 7329 } |
7333 a1.uFrameWidth -= 10; | 7330 a1.uFrameWidth -= 10; |
7334 a1.uFrameZ -= 10; | 7331 a1.uFrameZ -= 10; |
7335 v58 = HouseNPCData[(unsigned int)((char *)pDialogueNPCCount + -(dword_591080 != 0) - 1)]; | 7332 v58 = HouseNPCData[(unsigned int)((char *)pDialogueNPCCount + -(dword_591080 != 0) - 1)]; |
7336 v6 = v58; | 7333 v6 = v58; |
7337 v55 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u); | 7334 v55 = TargetColor(0xE1u, 0xCDu, 0x23u); |
7338 v7 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); | 7335 v7 = TargetColor(0x15u, 0x99u, 0xE9u); |
7339 v8 = v6->uProfession; | 7336 v8 = v6->uProfession; |
7340 if ( v8 ) | 7337 if ( v8 ) |
7341 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v6->pName, aNPCProfessionNames[v8]); | 7338 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v6->pName, aNPCProfessionNames[v8]); |
7342 else | 7339 else |
7343 strcpy(pTmpBuf, v6->pName); | 7340 strcpy(pTmpBuf, v6->pName); |
7412 } | 7409 } |
7413 v28 = v27 - 1; | 7410 v28 = v27 - 1; |
7414 if ( !v28 ) | 7411 if ( !v28 ) |
7415 { | 7412 { |
7416 v29 = (char *)&pMonsterStats + 88 * word_F8B1A0; | 7413 v29 = (char *)&pMonsterStats + 88 * word_F8B1A0; |
7417 v30 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); | 7414 v30 = TargetColor(0xFFu, 0xFFu, 0xFFu); |
7418 v31 = *(int *)v29; | 7415 v31 = *(int *)v29; |
7419 v32 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 7416 v32 = TargetColor(0xFFu, 0xFFu, 0x9Bu); |
7420 sprintf(pTmpBuf, &byte_4F0F98, v32, v31, v30); | 7417 sprintf(pTmpBuf, &byte_4F0F98, v32, v31, v30); |
7421 sprintf(pTmpBuf2, dword_F8B1A4, pTmpBuf, 100 * (unsigned __int8)v29[8]); | 7418 sprintf(pTmpBuf2, dword_F8B1A4, pTmpBuf, 100 * (unsigned __int8)v29[8]); |
7422 current_npc_text = pTmpBuf2; | 7419 current_npc_text = pTmpBuf2; |
7423 v15 = ""; | 7420 v15 = ""; |
7424 goto LABEL_45; | 7421 goto LABEL_45; |
7497 break; | 7494 break; |
7498 } | 7495 } |
7499 } | 7496 } |
7500 } | 7497 } |
7501 v34 = 0; | 7498 v34 = 0; |
7502 v54 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); | 7499 v54 = TargetColor(0xFFu, 0xFFu, 0xFFu); |
7503 v35 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u); | 7500 v35 = TargetColor(0xE1u, 0xCDu, 0x23u); |
7504 v36 = v14->pStartingPosActiveItem; | 7501 v36 = v14->pStartingPosActiveItem; |
7505 v55 = v35; | 7502 v55 = v35; |
7506 for ( i = v36 + v14->pNumPresenceButton; (signed int)v36 < (signed int)i; i = pDialogueWindow->pNumPresenceButton | 7503 for ( i = v36 + v14->pNumPresenceButton; (signed int)v36 < (signed int)i; i = pDialogueWindow->pNumPresenceButton |
7507 + pDialogueWindow->pStartingPosActiveItem ) | 7504 + pDialogueWindow->pStartingPosActiveItem ) |
7508 { | 7505 { |
7848 uDialogueType = 81;//enum JoinGuildDialog | 7845 uDialogueType = 81;//enum JoinGuildDialog |
7849 current_npc_text = (char *)pNPCTopics[pEventCode + 99].pText; | 7846 current_npc_text = (char *)pNPCTopics[pEventCode + 99].pText; |
7850 ContractSelectText(pEventCode); | 7847 ContractSelectText(pEventCode); |
7851 pDialogueWindow->Release(); | 7848 pDialogueWindow->Release(); |
7852 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15E, WINDOW_MainMenu, pEventCode, 0); | 7849 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15E, WINDOW_MainMenu, pEventCode, 0); |
7853 pBtn_ExitCancel = pDialogueWindow->CreateButton(0x1D7, 0x1BD, 0xA9, 0x23, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[34], // Cancel | 7850 pBtn_ExitCancel = pDialogueWindow->CreateButton(471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[34], pIcons_LOD->GetTexture(uExitCancelTextureId), 0); // Cancel |
7854 pIcons_LOD->GetTexture(uExitCancelTextureId), 0); | 7851 pDialogueWindow->CreateButton( 0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); |
7855 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); | 7852 pDialogueWindow->CreateButton(480, 160, 140, 30, 1, 0, UIMSG_ClickNPCTopic, 0x52u, 0, pGlobalTXT_LocalizationStrings[122], 0); |
7856 pDialogueWindow->CreateButton(0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, UIMSG_ClickNPCTopic, 0x52u, 0, pGlobalTXT_LocalizationStrings[122], 0); | |
7857 pDialogueWindow->_41D08F(1, 1, 0, 2); | 7853 pDialogueWindow->_41D08F(1, 1, 0, 2); |
7858 dialog_menu_id = HOUSE_DIALOGUE_OTHER; | 7854 dialog_menu_id = HOUSE_DIALOGUE_OTHER; |
7859 } | 7855 } |
7860 // F8B19C: using guessed type int dword_F8B19C; | 7856 // F8B19C: using guessed type int dword_F8B19C; |
7861 | 7857 |
7871 _4B254D_SkillMasteryTeacher(a4); | 7867 _4B254D_SkillMasteryTeacher(a4); |
7872 pDialogueWindow->Release(); | 7868 pDialogueWindow->Release(); |
7873 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, v1, 0); | 7869 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, v1, 0); |
7874 v2 = ""; | 7870 v2 = ""; |
7875 pBtn_ExitCancel = pDialogueWindow->CreateButton( 0x1D7u, 0x1BDu, 0xA9u, 0x23u, 1, 0, UIMSG_Escape, 0, 0, | 7871 pBtn_ExitCancel = pDialogueWindow->CreateButton( 0x1D7u, 0x1BDu, 0xA9u, 0x23u, 1, 0, UIMSG_Escape, 0, 0, |
7876 pGlobalTXT_LocalizationStrings[34], | 7872 pGlobalTXT_LocalizationStrings[34], pIcons_LOD->GetTexture(uExitCancelTextureId), 0); |
7877 (Texture *)(uExitCancelTextureId != -1 ? (int)&pIcons_LOD->pTextures[uExitCancelTextureId] : 0), | |
7878 0); | |
7879 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); | 7873 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); |
7880 if ( contract_approved ) | 7874 if ( contract_approved ) |
7881 v2 = pGlobalTXT_LocalizationStrings[535]; | 7875 v2 = pGlobalTXT_LocalizationStrings[535]; |
7882 pDialogueWindow->CreateButton(0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, UIMSG_ClickNPCTopic, 0x4Fu, 0, v2, 0); | 7876 pDialogueWindow->CreateButton(0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, UIMSG_ClickNPCTopic, 0x4Fu, 0, v2, 0); |
7883 pDialogueWindow->_41D08F(1, 1, 0, 2); | 7877 pDialogueWindow->_41D08F(1, 1, 0, 2); |
7896 v1 = HouseNPCData[(unsigned int)((char *)pDialogueNPCCount + -(dword_591080 != 0) - 1)]; | 7890 v1 = HouseNPCData[(unsigned int)((char *)pDialogueNPCCount + -(dword_591080 != 0) - 1)]; |
7897 pDialogueWindow->Release(); | 7891 pDialogueWindow->Release(); |
7898 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, 0, 0); | 7892 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, 0, 0); |
7899 pBtn_ExitCancel = pDialogueWindow->CreateButton( 0x1D7u, 0x1BDu, 0xA9u, 0x23u, 1, 0, UIMSG_Escape, 0, 0, | 7893 pBtn_ExitCancel = pDialogueWindow->CreateButton( 0x1D7u, 0x1BDu, 0xA9u, 0x23u, 1, 0, UIMSG_Escape, 0, 0, |
7900 pGlobalTXT_LocalizationStrings[34], //"Cancel" | 7894 pGlobalTXT_LocalizationStrings[34], //"Cancel" |
7901 (Texture *)(uExitCancelTextureId != -1 ? (int)&pIcons_LOD->pTextures[uExitCancelTextureId] : 0), | 7895 pIcons_LOD->GetTexture(uExitCancelTextureId), |
7902 0); | 7896 0); |
7903 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); | 7897 pDialogueWindow->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); |
7904 if ( pNPCStats->pProfessions[v1->uProfession].pBenefits)//*(&pNPCStats->field_13A5C + 5 * v1->uProfession) ) | 7898 if ( pNPCStats->pProfessions[v1->uProfession].pBenefits)//*(&pNPCStats->field_13A5C + 5 * v1->uProfession) ) |
7905 { | 7899 { |
7906 pDialogueWindow->CreateButton( 0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, UIMSG_ClickNPCTopic, 0x4Du, 0, | 7900 pDialogueWindow->CreateButton( 0x1E0u, 0xA0u, 0x8Cu, 0x1Eu, 1, 0, UIMSG_ClickNPCTopic, 0x4Du, 0, |
7932 if ( _this + 1 == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 7926 if ( _this + 1 == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
7933 { | 7927 { |
7934 pDialogueWindow->Release(); | 7928 pDialogueWindow->Release(); |
7935 pDialogueWindow = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); | 7929 pDialogueWindow = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); |
7936 sprintfex(sHouseName, pGlobalTXT_LocalizationStrings[LOCSTR_ENTER_S], pMapStats->pInfos[uHouse_ExitPic].pName); | 7930 sprintfex(sHouseName, pGlobalTXT_LocalizationStrings[LOCSTR_ENTER_S], pMapStats->pInfos[uHouse_ExitPic].pName); |
7937 pBtn_ExitCancel = pDialogueWindow->CreateButton( 566, 445, 75, 33, 1, 0, UIMSG_Escape, 0, 0x4Eu, | 7931 pBtn_ExitCancel = pDialogueWindow->CreateButton(566, 445, 75, 33, 1, 0, UIMSG_Escape, 0, 'N', pGlobalTXT_LocalizationStrings[34], pIcons_LOD->GetTexture(uTextureID_BUTTDESC2), 0);// "Cancel" |
7938 pGlobalTXT_LocalizationStrings[34],// "Cancel" | 7932 pBtn_YES = pDialogueWindow->CreateButton(486, 445, 75, 33, 1, 0, UIMSG_BF, 1, 'Y', sHouseName, pIcons_LOD->GetTexture(uTextureID_BUTTYES2), 0); |
7939 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0),0); | |
7940 pBtn_YES = pDialogueWindow->CreateButton( 486u, 445u, 75u, 33u, 1, 0, UIMSG_BF, 1u, 0x59u, | |
7941 sHouseName, | |
7942 (Texture *)(uTextureID_BUTTYES2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTYES2] : 0), 0); | |
7943 pDialogueWindow->CreateButton( pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], 63u, 73u, 1, 0, UIMSG_BF, 1u, 0x20u, sHouseName, 0); | 7933 pDialogueWindow->CreateButton( pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], 63u, 73u, 1, 0, UIMSG_BF, 1u, 0x20u, sHouseName, 0); |
7944 pDialogueWindow->CreateButton(8u, 8u, 460u, 344u, 1, 0, UIMSG_BF, 1u, 0x59u, sHouseName, 0); | 7934 pDialogueWindow->CreateButton(8, 8, 460, 344, 1, 0, UIMSG_BF, 1, 0x59u, sHouseName, 0); |
7945 } | 7935 } |
7946 else | 7936 else |
7947 { | 7937 { |
7948 v17 = HouseNPCData[_this + 1 - ((dword_591080 != 0) + 1)]; | 7938 v17 = HouseNPCData[_this + 1 - ((dword_591080 != 0) + 1)]; |
7949 if ( dialog_menu_id == HOUSE_DIALOGUE_OTHER ) | 7939 if ( dialog_menu_id == HOUSE_DIALOGUE_OTHER ) |
7956 ((GUIButton *)HouseNPCData[i + 7])->Release(); | 7946 ((GUIButton *)HouseNPCData[i + 7])->Release(); |
7957 } | 7947 } |
7958 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, 0, 0); | 7948 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, 0, 0); |
7959 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471u, 445u, 169u, 35u, 1, 0, UIMSG_Escape, 0, 0, | 7949 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471u, 445u, 169u, 35u, 1, 0, UIMSG_Escape, 0, 0, |
7960 pGlobalTXT_LocalizationStrings[74],// "End Conversation" | 7950 pGlobalTXT_LocalizationStrings[74],// "End Conversation" |
7961 (Texture *)(uExitCancelTextureId != -1 ? (int)&pIcons_LOD->pTextures[uExitCancelTextureId] : 0), 0); | 7951 pIcons_LOD->GetTexture(uExitCancelTextureId), 0); |
7962 pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); | 7952 pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); |
7963 if ( pDialogueNPCCount == 1 && dword_591080 ) | 7953 if ( pDialogueNPCCount == 1 && dword_591080 ) |
7964 { | 7954 { |
7965 sub_4B3B42(in_current_building_type); | 7955 sub_4B3B42(in_current_building_type); |
7966 } | 7956 } |
8418 memcpy(&v28, window_SpeakInHouse, sizeof(v28)); | 8408 memcpy(&v28, window_SpeakInHouse, sizeof(v28)); |
8419 v1 = pPlayers[uActiveCharacter]; | 8409 v1 = pPlayers[uActiveCharacter]; |
8420 v28.uFrameX = 483; | 8410 v28.uFrameX = 483; |
8421 v28.uFrameWidth = 148; | 8411 v28.uFrameWidth = 148; |
8422 v28.uFrameZ = 334; | 8412 v28.uFrameZ = 334; |
8423 v30 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); | 8413 v30 = TargetColor(0xFFu, 0xFFu, 0xFFu); |
8424 v31 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 8414 v31 = TargetColor(0xFFu, 0xFFu, 0x9Bu); |
8425 v2 = 52 * (unsigned int)v0->ptr_1C; | 8415 v2 = 52 * (unsigned int)v0->ptr_1C; |
8426 //v32 = (unsigned __int8)(((p2DEvents_minus1___00[v2 / 2] != 18) - 1) & 0x96) + 100; | 8416 //v32 = (unsigned __int8)(((p2DEvents_minus1___00[v2 / 2] != 18) - 1) & 0x96) + 100; |
8427 v32 = (unsigned __int8)(((p2DEvents[(unsigned int)v0->ptr_1C - 1].uType != 18) - 1) & 0x96) + 100; | 8417 v32 = (unsigned __int8)(((p2DEvents[(unsigned int)v0->ptr_1C - 1].uType != 18) - 1) & 0x96) + 100; |
8428 //v3 = (signed __int64)((double)v32 * p2DEvents_minus1__20[v2 / 4]); | 8418 //v3 = (signed __int64)((double)v32 * p2DEvents_minus1__20[v2 / 4]); |
8429 v3 = (signed __int64)((double)v32 * p2DEvents[(unsigned int)v0->ptr_1C - 1].fPriceMultiplier); | 8419 v3 = (signed __int64)((double)v32 * p2DEvents[(unsigned int)v0->ptr_1C - 1].fPriceMultiplier); |
9155 | 9145 |
9156 //LABEL_6: | 9146 //LABEL_6: |
9157 v12 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | 9147 v12 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); |
9158 v13 = pHouse_ExitPictures[v10]; | 9148 v13 = pHouse_ExitPictures[v10]; |
9159 pTexture_Dialogue_Background = &pIcons_LOD->pTextures[v12]; | 9149 pTexture_Dialogue_Background = &pIcons_LOD->pTextures[v12]; |
9160 pTexture_outside = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v13, TEXTURE_16BIT_PALETTE)]; | 9150 pTexture_outside = pIcons_LOD->LoadTexturePtr(v13, TEXTURE_16BIT_PALETTE); |
9161 if ( v9 ) | 9151 if ( v9 ) |
9162 { | 9152 { |
9163 if ( !v23 ) | 9153 if ( !v23 ) |
9164 //pVideoPlayer->OpenHouseMovie(pAnimatedRooms[p2DEvents_minus1___02[26 * v9]].field_0, 1u); | 9154 //pVideoPlayer->OpenHouseMovie(pAnimatedRooms[p2DEvents_minus1___02[26 * v9]].field_0, 1u); |
9165 pVideoPlayer->OpenHouseMovie(pAnimatedRooms[p2DEvents[v9 - 1].uAnimationID].video_name, 1u); | 9155 pVideoPlayer->OpenHouseMovie(pAnimatedRooms[p2DEvents[v9 - 1].uAnimationID].video_name, 1u); |