diff mm7_5.cpp @ 974:8a6b995a84a5

m
author Ritor1
date Wed, 08 May 2013 17:36:19 +0600
parents e655624e4b7c
children e875f5ab0cfb
line wrap: on
line diff
--- a/mm7_5.cpp	Tue May 07 22:02:45 2013 +0600
+++ b/mm7_5.cpp	Wed May 08 17:36:19 2013 +0600
@@ -3305,8 +3305,8 @@
   PLAYER_SKILL_TYPE v6; // edi@37
   GUIWindow *pWindow; // eax@56
   GUIButton *pButton; // eax@59
-  int v15; // edi@70
-  char v16; // zf@73
+  //int v15; // edi@70
+  //char v16; // zf@73
   char v20; // dl@116
   unsigned int v21; // eax@116
   unsigned int v25; // eax@120
@@ -3535,13 +3535,11 @@
           }
           if ( !(BYTE1(dword_6BE364_game_settings_1) & 0x40) )
             break;
-          v15 = 1;
           pVideoPlayer->bStopBeforeSchedule = 1;
           viewparams->bRedrawGameUI = 1;
           viewparams->field_48 = 1;
           if ( !GetCurrentMenuID() || GetCurrentMenuID() == MENU_CREATEPARTY || GetCurrentMenuID() == MENU_NAMEPANELESC )
           {
-LABEL_83:
             if ( pCurrentScreen == SCREEN_VIDEO )
               pVideoPlayer->FastForwardToFrame(pVideoPlayer->pResetflag);
             if (GetCurrentMenuID() == MENU_NAMEPANELESC)
@@ -3549,26 +3547,14 @@
               SetCurrentMenuID(MENU_CREATEPARTY);
               break;
             }
-            if (GetCurrentMenuID() == MENU_CREDITSPROC)
-            {
-              SetCurrentMenuID(MENU_CREDITSCLOSE);
-              break;
-            }
-            /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
-            {
-              pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)5;
-//LABEL_93:
-              pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 0;
-              *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0;
-              ++pMessageQueue_50CBD0->uNumMessages;
-              continue;
-            }*/
             pMessageQueue_50CBD0->AddMessage(UIMSG_ChangeGameState, 0, 0);
             break;
           }
-          v16 = GetCurrentMenuID() == 8;
-          if ( v16 && !pCurrentScreen )
-            goto LABEL_83;
+          if ( GetCurrentMenuID() == MENU_CREDITSPROC && !pCurrentScreen )
+          {
+            SetCurrentMenuID(MENU_CREDITSCLOSE);
+            break;
+          }
           if ( pCurrentScreen == SCREEN_LOADGAME )
           {
             pIcons_LOD->_4114F2();
@@ -3576,13 +3562,12 @@
             pTexture_PCX.Release();
             pTexture_PCX.Load("title.pcx", 0);
             SetCurrentMenuID(MENU_MAIN);
-            v15 = 1;
             pGUIWindow_CurrentMenu->Release();
             pGUIWindow2->Release();
             pGUIWindow2 = 0;
             pEventTimer->Resume();
             pCurrentScreen = SCREEN_GAME;
-            viewparams->bRedrawGameUI = v15;
+            viewparams->bRedrawGameUI = 1;
             break;
           }
           if ( pCurrentScreen == SCREEN_VIDEO )
@@ -3598,7 +3583,7 @@
               pGUIWindow2 = 0;
               pEventTimer->Resume();
               pCurrentScreen = SCREEN_GAME;
-              viewparams->bRedrawGameUI = v15;
+              viewparams->bRedrawGameUI = 1;
               break;
             }
             //VideoPlayer::dtor();