comparison mm7_5.cpp @ 974:8a6b995a84a5

m
author Ritor1
date Wed, 08 May 2013 17:36:19 +0600
parents e655624e4b7c
children e875f5ab0cfb
comparison
equal deleted inserted replaced
967:e655624e4b7c 974:8a6b995a84a5
3303 signed int v4; // eax@29 3303 signed int v4; // eax@29
3304 int v5; // ecx@29 3304 int v5; // ecx@29
3305 PLAYER_SKILL_TYPE v6; // edi@37 3305 PLAYER_SKILL_TYPE v6; // edi@37
3306 GUIWindow *pWindow; // eax@56 3306 GUIWindow *pWindow; // eax@56
3307 GUIButton *pButton; // eax@59 3307 GUIButton *pButton; // eax@59
3308 int v15; // edi@70 3308 //int v15; // edi@70
3309 char v16; // zf@73 3309 //char v16; // zf@73
3310 char v20; // dl@116 3310 char v20; // dl@116
3311 unsigned int v21; // eax@116 3311 unsigned int v21; // eax@116
3312 unsigned int v25; // eax@120 3312 unsigned int v25; // eax@120
3313 unsigned int v26; // ecx@127 3313 unsigned int v26; // ecx@127
3314 SoundID pSoundID; // [sp-2Ch] [bp-3Ch]@36 3314 SoundID pSoundID; // [sp-2Ch] [bp-3Ch]@36
3533 sub_41426F(); 3533 sub_41426F();
3534 break; 3534 break;
3535 } 3535 }
3536 if ( !(BYTE1(dword_6BE364_game_settings_1) & 0x40) ) 3536 if ( !(BYTE1(dword_6BE364_game_settings_1) & 0x40) )
3537 break; 3537 break;
3538 v15 = 1;
3539 pVideoPlayer->bStopBeforeSchedule = 1; 3538 pVideoPlayer->bStopBeforeSchedule = 1;
3540 viewparams->bRedrawGameUI = 1; 3539 viewparams->bRedrawGameUI = 1;
3541 viewparams->field_48 = 1; 3540 viewparams->field_48 = 1;
3542 if ( !GetCurrentMenuID() || GetCurrentMenuID() == MENU_CREATEPARTY || GetCurrentMenuID() == MENU_NAMEPANELESC ) 3541 if ( !GetCurrentMenuID() || GetCurrentMenuID() == MENU_CREATEPARTY || GetCurrentMenuID() == MENU_NAMEPANELESC )
3543 { 3542 {
3544 LABEL_83:
3545 if ( pCurrentScreen == SCREEN_VIDEO ) 3543 if ( pCurrentScreen == SCREEN_VIDEO )
3546 pVideoPlayer->FastForwardToFrame(pVideoPlayer->pResetflag); 3544 pVideoPlayer->FastForwardToFrame(pVideoPlayer->pResetflag);
3547 if (GetCurrentMenuID() == MENU_NAMEPANELESC) 3545 if (GetCurrentMenuID() == MENU_NAMEPANELESC)
3548 { 3546 {
3549 SetCurrentMenuID(MENU_CREATEPARTY); 3547 SetCurrentMenuID(MENU_CREATEPARTY);
3550 break; 3548 break;
3551 } 3549 }
3552 if (GetCurrentMenuID() == MENU_CREDITSPROC)
3553 {
3554 SetCurrentMenuID(MENU_CREDITSCLOSE);
3555 break;
3556 }
3557 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
3558 {
3559 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)5;
3560 //LABEL_93:
3561 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 0;
3562 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
3563 ++pMessageQueue_50CBD0->uNumMessages;
3564 continue;
3565 }*/
3566 pMessageQueue_50CBD0->AddMessage(UIMSG_ChangeGameState, 0, 0); 3550 pMessageQueue_50CBD0->AddMessage(UIMSG_ChangeGameState, 0, 0);
3567 break; 3551 break;
3568 } 3552 }
3569 v16 = GetCurrentMenuID() == 8; 3553 if ( GetCurrentMenuID() == MENU_CREDITSPROC && !pCurrentScreen )
3570 if ( v16 && !pCurrentScreen ) 3554 {
3571 goto LABEL_83; 3555 SetCurrentMenuID(MENU_CREDITSCLOSE);
3556 break;
3557 }
3572 if ( pCurrentScreen == SCREEN_LOADGAME ) 3558 if ( pCurrentScreen == SCREEN_LOADGAME )
3573 { 3559 {
3574 pIcons_LOD->_4114F2(); 3560 pIcons_LOD->_4114F2();
3575 //crt_deconstruct_ptr_6A0118(); 3561 //crt_deconstruct_ptr_6A0118();
3576 pTexture_PCX.Release(); 3562 pTexture_PCX.Release();
3577 pTexture_PCX.Load("title.pcx", 0); 3563 pTexture_PCX.Load("title.pcx", 0);
3578 SetCurrentMenuID(MENU_MAIN); 3564 SetCurrentMenuID(MENU_MAIN);
3579 v15 = 1;
3580 pGUIWindow_CurrentMenu->Release(); 3565 pGUIWindow_CurrentMenu->Release();
3581 pGUIWindow2->Release(); 3566 pGUIWindow2->Release();
3582 pGUIWindow2 = 0; 3567 pGUIWindow2 = 0;
3583 pEventTimer->Resume(); 3568 pEventTimer->Resume();
3584 pCurrentScreen = SCREEN_GAME; 3569 pCurrentScreen = SCREEN_GAME;
3585 viewparams->bRedrawGameUI = v15; 3570 viewparams->bRedrawGameUI = 1;
3586 break; 3571 break;
3587 } 3572 }
3588 if ( pCurrentScreen == SCREEN_VIDEO ) 3573 if ( pCurrentScreen == SCREEN_VIDEO )
3589 { 3574 {
3590 pVideoPlayer->Unload(); 3575 pVideoPlayer->Unload();
3596 pGUIWindow_CurrentMenu->Release(); 3581 pGUIWindow_CurrentMenu->Release();
3597 pGUIWindow2->Release(); 3582 pGUIWindow2->Release();
3598 pGUIWindow2 = 0; 3583 pGUIWindow2 = 0;
3599 pEventTimer->Resume(); 3584 pEventTimer->Resume();
3600 pCurrentScreen = SCREEN_GAME; 3585 pCurrentScreen = SCREEN_GAME;
3601 viewparams->bRedrawGameUI = v15; 3586 viewparams->bRedrawGameUI = 1;
3602 break; 3587 break;
3603 } 3588 }
3604 //VideoPlayer::dtor(); 3589 //VideoPlayer::dtor();
3605 } 3590 }
3606 break; 3591 break;