Mercurial > might-and-magic-trilogy
comparison mm7_5.cpp @ 26:93bf1d5f6a6d
Game loading.
author | Nomad |
---|---|
date | Tue, 16 Oct 2012 00:05:53 +0200 |
parents | 509744251c8e |
children | be2066176d89 |
comparison
equal
deleted
inserted
replaced
25:2bbf33898c6b | 26:93bf1d5f6a6d |
---|---|
1318 ptr_50C9A4 = 0; | 1318 ptr_50C9A4 = 0; |
1319 } | 1319 } |
1320 goto LABEL_322; | 1320 goto LABEL_322; |
1321 case 3: | 1321 case 3: |
1322 ptr_507BE0->Release(); | 1322 ptr_507BE0->Release(); |
1323 crt_deconstruct_ptr_6A0118(); | 1323 //crt_deconstruct_ptr_6A0118(); |
1324 ptr_507BE0 = 0; | 1324 ptr_507BE0 = 0; |
1325 pEventTimer->Resume(); | 1325 pEventTimer->Resume(); |
1326 goto LABEL_322; | 1326 goto LABEL_322; |
1327 case 11: | 1327 case 11: |
1328 case 12: | 1328 case 12: |
1329 pIcons_LOD->_4114F2(); | 1329 pIcons_LOD->_4114F2(); |
1330 crt_deconstruct_ptr_6A0118(); | 1330 //crt_deconstruct_ptr_6A0118(); |
1331 goto LABEL_291; | 1331 goto LABEL_291; |
1332 case 15: | 1332 case 15: |
1333 uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions = 10; | 1333 uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions = 10; |
1334 goto _continue; | 1334 goto _continue; |
1335 case 10: | 1335 case 10: |
2144 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; | 2144 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; |
2145 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = v0; | 2145 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = v0; |
2146 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; | 2146 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; |
2147 ++pMessageQueue_50CBD0->uNumMessages; | 2147 ++pMessageQueue_50CBD0->uNumMessages; |
2148 } | 2148 } |
2149 crt_deconstruct_ptr_6A0118(); | 2149 //crt_deconstruct_ptr_6A0118(); |
2150 ptr_507BE0->Release(); | 2150 ptr_507BE0->Release(); |
2151 pGUIWindow_CurrentMenu->Release(); | 2151 pGUIWindow_CurrentMenu->Release(); |
2152 ptr_507BE0 = 0; | 2152 ptr_507BE0 = 0; |
2153 pGUIWindow_CurrentMenu = 0; | 2153 pGUIWindow_CurrentMenu = 0; |
2154 } | 2154 } |
3694 && !uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions ) | 3694 && !uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions ) |
3695 goto LABEL_83; | 3695 goto LABEL_83; |
3696 if ( uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions == 12 ) | 3696 if ( uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions == 12 ) |
3697 { | 3697 { |
3698 pIcons_LOD->_4114F2(); | 3698 pIcons_LOD->_4114F2(); |
3699 crt_deconstruct_ptr_6A0118(); | 3699 //crt_deconstruct_ptr_6A0118(); |
3700 stru_506F20.Release(); | 3700 stru_506F20.Release(); |
3701 stru_506F20.Load("title.pcx", 0); | 3701 stru_506F20.Load("title.pcx", 0); |
3702 SetCurrentMenuID(MENU_MAIN); | 3702 SetCurrentMenuID(MENU_MAIN); |
3703 v15 = 1; | 3703 v15 = 1; |
3704 LABEL_81: | 3704 LABEL_81: |
13832 if ( dword_72371C[2 * v8] == dword_506568 ) | 13832 if ( dword_72371C[2 * v8] == dword_506568 ) |
13833 { | 13833 { |
13834 v32 = (&dword_723718_autonote_related)[8 * (signed __int16)v8]; | 13834 v32 = (&dword_723718_autonote_related)[8 * (signed __int16)v8]; |
13835 if ( (short)v8 ) | 13835 if ( (short)v8 ) |
13836 { | 13836 { |
13837 if ( (unsigned __int16)_449B57_test_bit((unsigned __int8 *)pParty->_autonote_related_stuff, v8) && v32 ) | 13837 if ( (unsigned __int16)_449B57_test_bit(pParty->_autonote_bits, v8) && v32 ) |
13838 { | 13838 { |
13839 v9 = dword_506520++; | 13839 v9 = dword_506520++; |
13840 pStru179->field_0[v9] = (signed __int16)v8; | 13840 pStru179->field_0[v9] = (signed __int16)v8; |
13841 } | 13841 } |
13842 } | 13842 } |