comparison mm7_4.cpp @ 456:20d96ec810c8

Слияние
author Ritor1
date Sun, 24 Feb 2013 13:53:18 +0600
parents 5e5dfedcc0ad 0a1ea44b4a0a
children e5cf03a3d98e
comparison
equal deleted inserted replaced
455:4c4584219da3 456:20d96ec810c8
5864 UINT v1; // esi@1 5864 UINT v1; // esi@1
5865 unsigned int v2; // ecx@3 5865 unsigned int v2; // ecx@3
5866 LONG uMouseX; // edi@6 5866 LONG uMouseX; // edi@6
5867 LONG uMouseY; // eax@6 5867 LONG uMouseY; // eax@6
5868 GUIButton *pControlsHead; // edx@6 5868 GUIButton *pControlsHead; // edx@6
5869 unsigned int pNumMessage; // ecx@7 5869 //unsigned int pNumMessage; // ecx@7
5870 int pControlParam; // esi@12 5870 int pControlParam; // esi@12
5871 signed int v8; // edi@30 5871 signed int v8; // edi@30
5872 int v9; // edx@31 5872 int v9; // edx@31
5873 char *v10; // ebx@37 5873 char *v10; // ebx@37
5874 Player *v11; // esi@38 5874 Player *v11; // esi@38
5905 if ( pAsyncMouse != (void *)v1 ) 5905 if ( pAsyncMouse != (void *)v1 )
5906 pAsyncMouse->_46B736_consume_click_lists(1); 5906 pAsyncMouse->_46B736_consume_click_lists(1);
5907 uMouseX = pMouse->GetCursorPos(&v25)->x; 5907 uMouseX = pMouse->GetCursorPos(&v25)->x;
5908 uMouseY = pMouse->GetCursorPos(&v25)->y; 5908 uMouseY = pMouse->GetCursorPos(&v25)->y;
5909 pControlsHead = pGUIWindow_CurrentMenu->pControlsHead; 5909 pControlsHead = pGUIWindow_CurrentMenu->pControlsHead;
5910 if ( pControlsHead != (GUIButton *)v1 ) 5910
5911 //does nothing actually
5912 /*if ( pControlsHead != (GUIButton *)v1 )
5911 { 5913 {
5912 pNumMessage = pMessageQueue_50CBD0->uNumMessages; 5914 pNumMessage = pMessageQueue_50CBD0->uNumMessages;
5913 do 5915 do
5914 { 5916 {
5915 if ( uMouseX >= (signed int)pControlsHead->uX && uMouseX <= (signed int)pControlsHead->uZ 5917 if ( uMouseX >= (signed int)pControlsHead->uX && uMouseX <= (signed int)pControlsHead->uZ
5916 && uMouseY >= (signed int)pControlsHead->uY && uMouseY <= (signed int)pControlsHead->uW )//mouse movement 5918 && uMouseY >= (signed int)pControlsHead->uY && uMouseY <= (signed int)pControlsHead->uW )//mouse movement
5917 { 5919 {
5918 pControlParam = pControlsHead->uControlParam; 5920 pControlParam = pControlsHead->uControlParam;
5919 pMessageQueue_50CBD0->SendMessage((UIMessageType)pControlsHead->field_1C, pControlParam, 0); 5921 pMessageQueue_50CBD0->AddMessage((UIMessageType)pControlsHead->field_1C, pControlParam, 0);
5920 v1 = 0; 5922 v1 = 0;
5921 } 5923 }
5922 pControlsHead = pControlsHead->pNext; 5924 pControlsHead = pControlsHead->pNext;
5923 } 5925 }
5924 while ( pControlsHead != (GUIButton *)v1 ); 5926 while ( pControlsHead != (GUIButton *)v1 );
5925 } 5927 }*/
5928
5926 while ( PeekMessageA(&Msg, (HWND)v1, v1, v1, PM_REMOVE) ) 5929 while ( PeekMessageA(&Msg, (HWND)v1, v1, v1, PM_REMOVE) )
5927 { 5930 {
5928 if ( Msg.message == WM_QUIT ) 5931 if ( Msg.message == WM_QUIT )
5929 Game_DeinitializeAndTerminate(0); 5932 Game_DeinitializeAndTerminate(0);
5930 TranslateMessage(&Msg); 5933 TranslateMessage(&Msg);
9518 v13[1] |= 1u; 9521 v13[1] |= 1u;
9519 break; 9522 break;
9520 } 9523 }
9521 pPlayers[uActiveCharacter]->PlaySound(SPEECH_85, 0); 9524 pPlayers[uActiveCharacter]->PlaySound(SPEECH_85, 0);
9522 } 9525 }
9523 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 9526 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
9527 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
9524 { 9528 {
9525 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 9529 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
9526 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 9530 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
9527 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 9531 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
9528 ++pMessageQueue_50CBD0->uNumMessages; 9532 ++pMessageQueue_50CBD0->uNumMessages;
9529 } 9533 }*/
9530 } 9534 }
9531 } 9535 }
9532 else 9536 else
9533 { 9537 {
9534 if ( a1 == 82 && dword_F8B1A8 ) 9538 if ( a1 == 82 && dword_F8B1A8 )
9575 if ( v5 <= 416 ) 9579 if ( v5 <= 416 )
9576 v2->evt_F = 0; 9580 v2->evt_F = 0;
9577 } 9581 }
9578 break; 9582 break;
9579 } 9583 }
9580 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 9584 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
9585 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
9581 { 9586 {
9582 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 9587 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
9583 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 9588 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
9584 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 9589 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
9585 ++pMessageQueue_50CBD0->uNumMessages; 9590 ++pMessageQueue_50CBD0->uNumMessages;
9586 } 9591 }*/
9587 v11 = uActiveCharacter; 9592 v11 = uActiveCharacter;
9588 if ( uActiveCharacter ) 9593 if ( uActiveCharacter )
9589 { 9594 {
9590 v25 = 0; 9595 v25 = 0;
9591 v23 = SPEECH_86; 9596 v23 = SPEECH_86;
9642 strcpy(v22, v24); 9647 strcpy(v22, v24);
9643 pParty->field_709 = 0; 9648 pParty->field_709 = 0;
9644 sub_44A56A(); 9649 sub_44A56A();
9645 PrepareHouse((HOUSE_TYPE)(int)window_SpeakInHouse->ptr_1C); 9650 PrepareHouse((HOUSE_TYPE)(int)window_SpeakInHouse->ptr_1C);
9646 dword_F8B19C = 1; 9651 dword_F8B19C = 1;
9647 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 9652
9653 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
9654 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
9648 { 9655 {
9649 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 9656 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
9650 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 9657 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
9651 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 9658 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
9652 ++pMessageQueue_50CBD0->uNumMessages; 9659 ++pMessageQueue_50CBD0->uNumMessages;
9653 } 9660 }*/
9654 v11 = uActiveCharacter; 9661 v11 = uActiveCharacter;
9655 if ( uActiveCharacter ) 9662 if ( uActiveCharacter )
9656 { 9663 {
9657 v25 = 0; 9664 v25 = 0;
9658 v23 = 61; 9665 v23 = 61;
11602 ShowStatusBarString(pGlobalTXT_LocalizationStrings[155], 2u);// "You don't have enough gold" 11609 ShowStatusBarString(pGlobalTXT_LocalizationStrings[155], 2u);// "You don't have enough gold"
11603 v63 = 4; 11610 v63 = 4;
11604 LABEL_55: 11611 LABEL_55:
11605 HousePlaySomeSound((unsigned int)window_SpeakInHouse->ptr_1C, v63); 11612 HousePlaySomeSound((unsigned int)window_SpeakInHouse->ptr_1C, v63);
11606 LABEL_56: 11613 LABEL_56:
11607 result = pMessageQueue_50CBD0->uNumMessages; 11614 /*result = pMessageQueue_50CBD0->uNumMessages;
11608 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 11615 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
11609 { 11616 {
11610 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 11617 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
11611 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 11618 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
11612 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3; 11619 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3;
11613 *(&pMessageQueue_50CBD0->uNumMessages + result) = 0; 11620 *(&pMessageQueue_50CBD0->uNumMessages + result) = 0;
11614 ++pMessageQueue_50CBD0->uNumMessages; 11621 ++pMessageQueue_50CBD0->uNumMessages;
11615 } 11622 }
11616 return result; 11623 return result;*/
11624 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
11625 return 1; // void function actually
11617 } 11626 }
11618 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[538], v5 - LODWORD(v0->uExperience), v34 + 1);// 11627 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[538], v5 - LODWORD(v0->uExperience), v34 + 1);//
11619 // "You need %d more experience to train to level %d" 11628 // "You need %d more experience to train to level %d"
11620 v35 = 0; 11629 v35 = 0;
11621 v62 = 3; 11630 v62 = 3;
12482 { 12491 {
12483 LABEL_51: 12492 LABEL_51:
12484 pParty->field_709 = 0; 12493 pParty->field_709 = 0;
12485 sub_44A56A(); 12494 sub_44A56A();
12486 dword_591084 = 0; 12495 dword_591084 = 0;
12487 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 12496 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
12497 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
12488 { 12498 {
12489 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 12499 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
12490 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 12500 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
12491 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 12501 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
12492 ++pMessageQueue_50CBD0->uNumMessages; 12502 ++pMessageQueue_50CBD0->uNumMessages;
12493 } 12503 }*/
12494 goto LABEL_89; 12504 goto LABEL_89;
12495 } 12505 }
12496 v14 = 76; 12506 v14 = 76;
12497 v12 = 0; 12507 v12 = 0;
12498 v11 = &pParty->pHirelings[1]; 12508 v11 = &pParty->pHirelings[1];
12543 v13 = pParty->pHireling1Name; 12553 v13 = pParty->pHireling1Name;
12544 } 12554 }
12545 strcpy(v13, v15); 12555 strcpy(v13, v15);
12546 pParty->field_709 = 0; 12556 pParty->field_709 = 0;
12547 sub_44A56A(); 12557 sub_44A56A();
12548 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 12558
12559 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
12560 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
12549 { 12561 {
12550 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 12562 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
12551 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 12563 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
12552 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 12564 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
12553 ++pMessageQueue_50CBD0->uNumMessages; 12565 ++pMessageQueue_50CBD0->uNumMessages;
12554 } 12566 }*/
12555 if ( (uDialogue_SpeakingActorNPC_ID & 0x80000000u) == 0 ) 12567 if ( (uDialogue_SpeakingActorNPC_ID & 0x80000000u) == 0 )
12556 pDialogue_SpeakingActor->uAIState = Removed; 12568 pDialogue_SpeakingActor->uAIState = Removed;
12557 if ( uActiveCharacter ) 12569 if ( uActiveCharacter )
12558 pPlayers[uActiveCharacter]->PlaySound(SPEECH_61, 0); 12570 pPlayers[uActiveCharacter]->PlaySound(SPEECH_61, 0);
12559 goto LABEL_87; 12571 goto LABEL_87;
12567 { 12579 {
12568 if ( !sub_4BB756(v2->uProfession) ) 12580 if ( !sub_4BB756(v2->uProfession) )
12569 { 12581 {
12570 if ( v2->uProfession != 41 ) 12582 if ( v2->uProfession != 41 )
12571 v2->bHasUsedTheAbility = 1; 12583 v2->bHasUsedTheAbility = 1;
12572 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 12584 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
12573 { 12585 {
12574 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 12586 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
12575 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 12587 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
12576 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 12588 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
12577 ++pMessageQueue_50CBD0->uNumMessages; 12589 ++pMessageQueue_50CBD0->uNumMessages;
12578 } 12590 }*/
12591 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
12579 goto LABEL_87; 12592 goto LABEL_87;
12580 } 12593 }
12581 v7 = pGlobalTXT_LocalizationStrings[140]; 12594 v7 = pGlobalTXT_LocalizationStrings[140];
12582 goto LABEL_64; 12595 goto LABEL_64;
12583 } 12596 }
12842 Party::TakeGold(v63); 12855 Party::TakeGold(v63);
12843 *(short *)v3 = 1; 12856 *(short *)v3 = 1;
12844 } 12857 }
12845 } 12858 }
12846 } 12859 }
12847 result = pMessageQueue_50CBD0->uNumMessages; 12860 /*result = pMessageQueue_50CBD0->uNumMessages;
12848 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 12861 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
12849 { 12862 {
12850 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 12863 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
12851 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 12864 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
12852 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3; 12865 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3;
12853 *(&pMessageQueue_50CBD0->uNumMessages + result) = 0; 12866 *(&pMessageQueue_50CBD0->uNumMessages + result) = 0;
12854 ++pMessageQueue_50CBD0->uNumMessages; 12867 ++pMessageQueue_50CBD0->uNumMessages;
12855 } 12868 }*/
12856 return result; 12869 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
12870 return 1; // void function actually
12857 } 12871 }
12858 pRenderer->DrawTextureIndexed(8u, 8u, dword_F8B164); 12872 pRenderer->DrawTextureIndexed(8u, 8u, dword_F8B164);
12859 v5 = 0; 12873 v5 = 0;
12860 v6 = 0; 12874 v6 = 0;
12861 v62 = 0; 12875 v62 = 0;
13386 LABEL_63: 13400 LABEL_63:
13387 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x2), -1, 0, -1, 0, 0, 0, 0); 13401 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x2), -1, 0, -1, 0, 0, 0, 0);
13388 v1->PlaySound(SPEECH_82, 0); 13402 v1->PlaySound(SPEECH_82, 0);
13389 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536); 13403 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536);
13390 LABEL_46: 13404 LABEL_46:
13391 result = pMessageQueue_50CBD0->uNumMessages; 13405 /*result = pMessageQueue_50CBD0->uNumMessages;
13392 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 13406 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
13393 { 13407 {
13394 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 13408 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
13395 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 13409 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
13396 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3; 13410 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3;
13397 *(&pMessageQueue_50CBD0->uNumMessages + result) = v25; 13411 *(&pMessageQueue_50CBD0->uNumMessages + result) = v25;
13398 ++pMessageQueue_50CBD0->uNumMessages; 13412 ++pMessageQueue_50CBD0->uNumMessages;
13399 } 13413 }*/
13400 return result; 13414 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, v25);
13415 return result; // void func
13401 } 13416 }
13402 v63 = 1; 13417 v63 = 1;
13403 v41 = pDialogueWindow->GetControl(pDialogueWindow->pStartingPosActiveItem); 13418 v41 = pDialogueWindow->GetControl(pDialogueWindow->pStartingPosActiveItem);
13404 strcpy(a1, ""); 13419 strcpy(a1, "");
13405 v41->uHeight = 0; 13420 v41->uHeight = 0;
13648 } 13663 }
13649 else 13664 else
13650 { 13665 {
13651 v5 = 0; 13666 v5 = 0;
13652 } 13667 }
13653 result = pMessageQueue_50CBD0->uNumMessages; 13668 /*result = pMessageQueue_50CBD0->uNumMessages;
13654 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 13669 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
13655 { 13670 {
13656 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 13671 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
13657 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 13672 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
13658 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3; 13673 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3;
13659 *(&pMessageQueue_50CBD0->uNumMessages + result) = v5; 13674 *(&pMessageQueue_50CBD0->uNumMessages + result) = v5;
13660 ++pMessageQueue_50CBD0->uNumMessages; 13675 ++pMessageQueue_50CBD0->uNumMessages;
13661 } 13676 }*/
13662 return result; 13677 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, v5);
13678 return result; // void func
13663 } 13679 }
13664 if ( !(unsigned __int16)_449B57_test_bit( 13680 if ( !(unsigned __int16)_449B57_test_bit(
13665 (unsigned __int8 *)v1->field_152, 13681 (unsigned __int8 *)v1->field_152,
13666 word_4F0754[2 * (unsigned int)window_SpeakInHouse->ptr_1C]) ) 13682 word_4F0754[2 * (unsigned int)window_SpeakInHouse->ptr_1C]) )
13667 { 13683 {
13998 { 14014 {
13999 if ( pParty->uNumGold < s1 ) 14015 if ( pParty->uNumGold < s1 )
14000 { 14016 {
14001 ShowStatusBarString(pGlobalTXT_LocalizationStrings[155], 2u); 14017 ShowStatusBarString(pGlobalTXT_LocalizationStrings[155], 2u);
14002 HousePlaySomeSound((unsigned int)window_SpeakInHouse->ptr_1C, 3); 14018 HousePlaySomeSound((unsigned int)window_SpeakInHouse->ptr_1C, 3);
14003 if ( (signed int)pMessageQueue_50CBD0->uNumMessages >= 40 ) 14019 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages >= 40 )
14004 return; 14020 return;
14005 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 14021 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
14006 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1; 14022 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
14007 goto LABEL_33; 14023 goto LABEL_33;*/
14024 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
14008 } 14025 }
14009 Party::TakeGold(s1); 14026 Party::TakeGold(s1);
14010 v47[1] = (const char *)7; 14027 v47[1] = (const char *)7;
14011 v5 = &byte_4F09B0[32 * (unsigned __int8)*(&byte_4F0CCF[4 * (unsigned int)window_SpeakInHouse->ptr_1C] + dword_F8B19C)]; 14028 v5 = &byte_4F09B0[32 * (unsigned __int8)*(&byte_4F0CCF[4 * (unsigned int)window_SpeakInHouse->ptr_1C] + dword_F8B19C)];
14012 if ( v5[pParty->uDaysPlayed % 7 + 1] ) 14029 if ( v5[pParty->uDaysPlayed % 7 + 1] )
14074 v15 = v14; 14091 v15 = v14;
14075 while ( GetTickCount() < v15 ) 14092 while ( GetTickCount() < v15 )
14076 sqrt(3.1415926); 14093 sqrt(3.1415926);
14077 while ( sub_4BD8B5() ) 14094 while ( sub_4BD8B5() )
14078 ; 14095 ;
14079 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 14096 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 0, 0);
14097 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
14080 { 14098 {
14081 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; 14099 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113;
14082 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 0; 14100 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 0;
14083 LABEL_33: 14101 LABEL_33:
14084 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; 14102 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
14085 ++pMessageQueue_50CBD0->uNumMessages; 14103 ++pMessageQueue_50CBD0->uNumMessages;
14086 return; 14104 return;
14087 } 14105 }*/
14088 } 14106 }
14089 else 14107 else
14090 { 14108 {
14091 dword_F8B19C = 1; 14109 dword_F8B19C = 1;
14092 pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0); 14110 pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);