annotate Game/GameOver.cpp @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents d87bfbd3bb3b
children
rev   line source
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
1 #include "Engine/Engine.h"
2572
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
2 #include "Engine/AssetsManager.h"
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
3 #include "Engine/Timer.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
4 #include "Engine/texts.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
5 #include "Engine/Party.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
6 #include "Engine/LOD.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
7 #include "Engine/SaveLoad.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
8 #include "Engine/Graphics/IRender.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
9 #include "Engine/Graphics/Viewport.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
10
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
11 #include "IO/Mouse.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
12 #include "IO/Keyboard.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
13
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
14 #include "Media/Audio/AudioPlayer.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
15
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
16 #include "GUI/GUIWindow.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
17 #include "GUI/GUIButton.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
18 #include "GUI/GUIFont.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
19 #include "GUI/UI/UIPartyCreation.h"
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
20
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
21
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
22 //----- (004BF91E) --------------------------------------------------------
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
23 void GameOver_Loop(int v15)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
24 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
25 const char *v1; // eax@2
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
26 unsigned int result; // eax@3
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
27 const char *v6; // eax@10
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
28 const char *v7; // edx@10
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
29 const char *v8; // ecx@12
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
30 const char *v9; // eax@14
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
31 unsigned int v10; // eax@25
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
32 GUIWindow pWindow; // [sp+34h] [bp-9Ch]@1
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
33 unsigned int v14; // [sp+A4h] [bp-2Ch]@5
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
34 const char *pInString; // [sp+ACh] [bp-24h]@5
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
35 unsigned int v17; // [sp+B0h] [bp-20h]@5
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
36 unsigned int v18; // [sp+B4h] [bp-1Ch]@5
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
37 unsigned int v19; // [sp+B8h] [bp-18h]@5
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
38 int v20; // [sp+BCh] [bp-14h]@7
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
39 GUIFont *pFont; // [sp+C4h] [bp-Ch]@1
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
40 unsigned __int64 v23; // [sp+C8h] [bp-8h]@5
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
41 MSG msg;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
42
2572
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
43 //RGBTexture _this; // [sp+Ch] [bp-C4h]@1
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
44 //RGBTexture::RGBTexture(&this);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
45
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
46 dword_6BE364_game_settings_1 &= ~GAME_SETTINGS_4000;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
47 bGameoverLoop = true;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
48 pMediaPlayer->bStopBeforeSchedule = 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
49 pAudioPlayer->StopChannels(-1, -1);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
50 pRenderer->BeginScene();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
51 pRenderer->ClearBlack();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
52 pRenderer->EndScene();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
53 pRenderer->Present();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
54 //pMediaPlayer->pResetflag = 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
55 _449B57_test_bit(pParty->_quest_bits, 99);
2572
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
56
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
57
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
58 Image *background = assets->GetImage_PCXFromIconsLOD(L"winbg.pcx");
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
59 {
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
60 pRenderer->BeginScene();
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
61 pRenderer->DrawTextureNew(0, 0, background);
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
62 pRenderer->EndScene();
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
63 }
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
64 background->Release();
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
65 background = nullptr;
d87bfbd3bb3b Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents: 2544
diff changeset
66
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
67 window_SpeakInHouse = new GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 0, 0);
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
68 pWindow.uFrameX = 75;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
69 pWindow.uFrameY = 60;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
70 pWindow.uFrameWidth = 469;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
71 pWindow.uFrameHeight = 338;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
72 pWindow.uFrameZ = 543;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
73 pWindow.uFrameW = 397;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
74 pFont = LoadFont("endgame.fnt", "FONTPAL", NULL);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
75 if (pParty->IsPartyGood())
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
76 v1 = pGlobalTXT_LocalizationStrings[675];//"Splendid job! With the activation of the Gate, a thousand worlds lie at your feet. Perhaps on one of them you will find the Ancients themselves, and return with the fruits their great civilization has to offer your world and your kingdom."
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
77 else if (pParty->IsPartyEvil())
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
78 v1 = pGlobalTXT_LocalizationStrings[676];//"Brilliant! The completion of the Heavenly Forge has provided enough Ancient weapons to crush all resistance to your plans. Soon the world will bow to your every whim! Still, you can't help but wonder what was beyond the Gate the other side was trying so hard to build."
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
79 else return;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
80 pInString = v1;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
81 v23 = pParty->uTimePlayed - 138240;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
82 v19 = (unsigned int)((signed __int64)((double)(pParty->uTimePlayed - 138240) * 0.234375) / 60 / 60) / 24;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
83 v14 = (unsigned int)((signed __int64)((double)(pParty->uTimePlayed - 138240) * 0.234375) / 60 / 60) / 24 / 0x1C / 0xC;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
84 v18 = (unsigned int)((signed __int64)((double)(pParty->uTimePlayed - 138240) * 0.234375) / 60 / 60) / 24 / 0x1C % 0xC;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
85 v17 = v19 % 0x1C;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
86 if (!v19)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
87 v19 = 1;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
88 pRenderer->BeginScene();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
89 pWindow.DrawTitleText(pFont, 1, 0x23, 1, pGlobalTXT_LocalizationStrings[9], 3);//Congratulations!
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
90 v23 = 0i64;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
91 v20 = 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
92 for (uint i = 0; i < 4; i++)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
93 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
94 sprintf(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[129], pParty->pPlayers[i].pName, pParty->pPlayers[i].GetBaseLevel(), pClassNames[pParty->pPlayers[i].classType]);//%s the Level %u %s
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
95 pWindow.DrawTitleText(pFont, 1, i * (LOBYTE(pFont->uFontHeight) - 2) + LOBYTE(pFont->uFontHeight) + 46, 1, pTmpBuf.data(), 3);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
96 v23 += pParty->pPlayers[i].uExperience;//__PAIR__(*(int *)(i - 4), *(int *)(i - 8));
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
97 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
98 v23 = (signed __int64)v23 / v19;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
99 v6 = FitTextInAWindow(pInString, pFont, &pWindow, 0xC, 0);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
100 pWindow.DrawTitleText(pFont, 1, 5 * (LOBYTE(pFont->uFontHeight) + 11), 1, v6, 0);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
101 strcpy(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[37]);//Total Time:
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
102
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
103 v7 = pGlobalTXT_LocalizationStrings[56];
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
104 if (v17 != 1)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
105 v7 = pGlobalTXT_LocalizationStrings[57];
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
106
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
107 v8 = pGlobalTXT_LocalizationStrings[146];//Month
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
108 if (v18 != 1)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
109 v8 = pGlobalTXT_LocalizationStrings[148];//Months
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
110
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
111 v9 = pGlobalTXT_LocalizationStrings[245];
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
112 if (v14 != 1)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
113 v9 = pGlobalTXT_LocalizationStrings[132];
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
114
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
115 sprintf(pTmpBuf2.data(), " %lu %s, %lu %s, %lu %s ", v14, v9, v18, v8, v17, v7);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
116 strcat(pTmpBuf.data(), pTmpBuf2.data());
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
117 pWindow.DrawTitleText(pFont, 1, pWindow.uFrameHeight - 2 * LOBYTE(pFont->uFontHeight) - 5, 1, pTmpBuf.data(), 3);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
118 sprintf(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[94], v23);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
119 pWindow.DrawTitleText(pFont, 1, pWindow.uFrameHeight, 1, pTmpBuf.data(), 3);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
120 dword_6BE364_game_settings_1 |= GAME_SETTINGS_4000;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
121 pRenderer->EndScene();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
122 pRenderer->Present();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
123 //if ( pRenderer->pRenderD3D )
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
124 pRenderer->pBeforePresentFunction();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
125 pRenderer->SaveWinnersCertificate("MM7_Win.Pcx");
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
126 free(pFont);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
127 window_SpeakInHouse->Release();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
128 window_SpeakInHouse = 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
129 if (v15 == 2)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
130 result = pMessageQueue_50CBD0->uNumMessages;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
131 else
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
132 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
133 LODWORD(v23) = GetTickCount() + 5000;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
134 while ((unsigned int)v23 > GetTickCount())
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
135 ;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
136 while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
137 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
138 if (msg.message == WM_QUIT)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
139 Engine_DeinitializeAndTerminate(0);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
140 TranslateMessage(&msg);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
141 DispatchMessage(&msg);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
142 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
143 if (pMessageQueue_50CBD0->uNumMessages)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
144 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
145 LOBYTE(v10) = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
146 pMessageQueue_50CBD0->uNumMessages = v10;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
147 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
148 pKeyActionMap->ResetKeys();
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
149 pKeyActionMap->uLastKeyPressed = 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
150 do
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
151 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
152 while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
153 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
154 if (msg.message == WM_QUIT)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
155 Engine_DeinitializeAndTerminate(0);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
156 TranslateMessage(&msg);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
157 DispatchMessage(&msg);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
158 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
159 } while (!pKeyActionMap->uLastKeyPressed);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
160 if (pMessageQueue_50CBD0->uNumMessages)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
161 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
162 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
163 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
164 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
165 if (v15)
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
166 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
167 /*if ( (signed int)result < 40 )
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
168 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
169 pMessageQueue_50CBD0->pMessages[result].eType = UIMSG_Quit;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
170 }*/
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
171 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Quit, 1, 0);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
172 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
173 else
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
174 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
175 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_ShowFinalWindow, 1, 0);
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
176 /*if ( (signed int)result < 40 )
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
177 {
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
178 pMessageQueue_50CBD0->pMessages[result].eType = UIMSG_C5;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
179 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = 1;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
180 result = 3 * pMessageQueue_50CBD0->uNumMessages + 3;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
181 *(&pMessageQueue_50CBD0->uNumMessages + result) = 0;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
182 ++pMessageQueue_50CBD0->uNumMessages;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
183 }*/
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
184 }
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
185 bGameoverLoop = false;
b6140dfeac27 GameOver h/cpp
a.parshin
parents:
diff changeset
186 }