Mercurial > mm7
comparison mm7_2.cpp @ 465:e65d75206263
m
author | Ritor1 |
---|---|
date | Mon, 25 Feb 2013 09:08:13 +0600 |
parents | 85edec9da96b |
children | 91e1ba340f39 |
comparison
equal
deleted
inserted
replaced
369:6e984a4a896f | 465:e65d75206263 |
---|---|
1484 } | 1484 } |
1485 pRenderer->DrawTextureIndexed(8u, 8u, dword_F8B164); | 1485 pRenderer->DrawTextureIndexed(8u, 8u, dword_F8B164); |
1486 v3 = 0; | 1486 v3 = 0; |
1487 if ( dword_F8B19C == 2 ) | 1487 if ( dword_F8B19C == 2 ) |
1488 { | 1488 { |
1489 v48 = 0; | 1489 //v48 = 0; |
1490 v108 = 0; | 1490 v108 = 0; |
1491 v109 = 0; | 1491 int a = 0; |
1492 do | 1492 //do |
1493 { | 1493 for (int i = 0; i < 6; i++) |
1494 if ( pParty->field_777C[9 * (int)&v48[3 * (unsigned int)window_SpeakInHouse->ptr_1C]] ) | 1494 { |
1495 { | 1495 if ( pParty->field_777C[9 * (i + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] ) |
1496 v49 = word_F8B158[(signed int)v48]; | 1496 { |
1497 v50 = dword_F8B168[(signed int)v48]; | 1497 v49 = word_F8B158[i]; |
1498 v50 = dword_F8B168[i]; | |
1498 v49 += 30; | 1499 v49 += 30; |
1499 v51 = 60 - ((signed int)v50->uTextureWidth >> 1); | 1500 v51 = 60 - ((signed int)v50->uTextureWidth >> 1); |
1500 pRenderer->DrawTextureTransparent(v51 + v108, v49, v50); | 1501 pRenderer->DrawTextureTransparent(v51 + v108, v49, v50); |
1501 sub_40F92A( | 1502 sub_40F92A( |
1502 &pRenderer->pActiveZBuffer[v51 + v108 + 640 * v49], | 1503 &pRenderer->pActiveZBuffer[v51 + v108 + 640 * v49], |
1503 dword_F8B168[(signed int)v109], | 1504 dword_F8B168[a], |
1504 (int)((char *)v109 + 1)); | 1505 a++); |
1505 v48 = v109; | 1506 i = a; |
1506 } | 1507 } |
1507 v108 += 70; | 1508 v108 += 70; |
1508 v48 = (const char **)((char *)v48 + 1); | 1509 i++; |
1509 v109 = v48; | 1510 a = i; |
1510 } | 1511 } |
1511 while ( (signed int)v48 < 6 ); | 1512 //while ( (signed int)v48 < 6 ); |
1512 } | 1513 } |
1513 else | 1514 else |
1514 { | 1515 { |
1515 v109 = 0; | 1516 //v109 = 0; |
1516 v108 = 0; | 1517 v108 = 0; |
1517 do | 1518 //do |
1518 { | 1519 for (int i = 0; i < 6; i++) |
1519 if ( pParty->field_C59C[9 * (int)&v109[3 * (unsigned int)window_SpeakInHouse->ptr_1C] + 724] ) | 1520 { |
1520 { | 1521 if ( pParty->field_C59C[9 * (i + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 724] ) |
1521 v52 = word_F8B158[(signed int)v109] + 30; | 1522 { |
1522 v53 = dword_F8B168[(signed int)v109]; | 1523 v52 = word_F8B158[i] + 30; |
1524 v53 = dword_F8B168[i]; | |
1523 v54 = 60 - ((signed int)v53->uTextureWidth >> 1); | 1525 v54 = 60 - ((signed int)v53->uTextureWidth >> 1); |
1524 pRenderer->DrawTextureTransparent(v54 + v108, word_F8B158[(signed int)v109] + 30, v53); | 1526 pRenderer->DrawTextureTransparent(v54 + v108, word_F8B158[i] + 30, v53); |
1525 sub_40F92A( | 1527 sub_40F92A(&pRenderer->pActiveZBuffer[v54 + v108 + 640 * v52], |
1526 &pRenderer->pActiveZBuffer[v54 + v108 + 640 * v52], | 1528 dword_F8B168[i], |
1527 dword_F8B168[(signed int)v109], | 1529 i++); |
1528 (int)((char *)v109 + 1)); | 1530 } |
1529 } | 1531 i++; |
1530 v109 = (const char **)((char *)v109 + 1); | |
1531 v108 += 70; | 1532 v108 += 70; |
1532 } | 1533 } |
1533 while ( (signed int)v109 < 6 ); | 1534 //while ( (signed int)v109 < 6 ); |
1534 } | 1535 } |
1535 result = (char *)sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); | 1536 result = (char *)sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); |
1536 if ( result ) | 1537 if ( result ) |
1537 { | 1538 { |
1538 v55 = 0; | 1539 v55 = 0; |
3699 0); | 3700 0); |
3700 return pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, 0, 0x51u, 0, 0, "", 0); | 3701 return pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, 0, 0x51u, 0, 0, "", 0); |
3701 } | 3702 } |
3702 | 3703 |
3703 //----- (004BCACC) -------------------------------------------------------- | 3704 //----- (004BCACC) -------------------------------------------------------- |
3704 void __fastcall sub_4BCACC_bounties(signed int a1) | 3705 void __fastcall sub_4BCACC_bounties(signed int a1)//Shop_MsgUI |
3705 { | 3706 { |
3706 unsigned int v1; // edi@1 | 3707 unsigned int v1; // edi@1 |
3707 //signed int v2; // ebx@1 | 3708 //signed int v2; // ebx@1 |
3708 //signed int v3; // ecx@2 | 3709 //signed int v3; // ecx@2 |
3709 int v4; // eax@5 | 3710 int v4; // eax@5 |
13804 { | 13805 { |
13805 ClipCursor(0); | 13806 ClipCursor(0); |
13806 aborting_app = 1; | 13807 aborting_app = 1; |
13807 if ( !pRenderer->bWindowMode ) | 13808 if ( !pRenderer->bWindowMode ) |
13808 pRenderer->ChangeBetweenWinFullscreenModes(); | 13809 pRenderer->ChangeBetweenWinFullscreenModes(); |
13810 __debugbreak; | |
13809 if ( MessageBoxA(0, pGlobalTXT_LocalizationStrings[176], pGlobalTXT_LocalizationStrings[59], 0x34u) == 6 ) | 13811 if ( MessageBoxA(0, pGlobalTXT_LocalizationStrings[176], pGlobalTXT_LocalizationStrings[59], 0x34u) == 6 ) |
13810 SaveGame(1, 0); // "Internal Error" | 13812 SaveGame(1, 0); // "Internal Error" |
13811 // "Might and Magic VII has detected an internal error and will be forced to close. Would you like us to autosave your game before closing?" | 13813 // "Might and Magic VII has detected an internal error and will be forced to close. Would you like us to autosave your game before closing?" |
13812 Game_DeinitializeAndTerminate(1); | 13814 Game_DeinitializeAndTerminate(1); |
13813 } | 13815 } |