comparison Engine/Engine.cpp @ 2551:4008b2f34be0

MainMenu rendering moved from event loop to respective window class
author a.parshin
date Tue, 12 May 2015 12:03:30 +0200
parents c674d547cc7c
children ac16f4a3a91e
comparison
equal deleted inserted replaced
2550:fb42e2662c38 2551:4008b2f34be0
1741 dword_576E28 = 9; 1741 dword_576E28 = 9;
1742 } 1742 }
1743 1743
1744 int max_flight_height = 4000; //maximum altitude 1744 int max_flight_height = 4000; //maximum altitude
1745 bool use_MMT = false; 1745 bool use_MMT = false;
1746 bool use_music_folder = true; 1746 bool use_music_folder = false;
1747 bool for_refactoring = false; 1747 bool for_refactoring = false;
1748 1748
1749 //----- (00462C94) -------------------------------------------------------- 1749 //----- (00462C94) --------------------------------------------------------
1750 bool MM_Main(const wchar_t *pCmdLine) 1750 bool MM_Main(const wchar_t *pCmdLine)
1751 { 1751 {
3130 } while (v6 >= pIcons_LOD->pFacesLock); 3130 } while (v6 >= pIcons_LOD->pFacesLock);
3131 } 3131 }
3132 pIcons_LOD->uNumLoadedFiles = pIcons_LOD->pFacesLock; 3132 pIcons_LOD->uNumLoadedFiles = pIcons_LOD->pFacesLock;
3133 pIcons_LOD->pFacesLock = 0; 3133 pIcons_LOD->pFacesLock = 0;
3134 } 3134 }
3135 // 4ED498: using guessed type char byte_4ED498;
3136 3135
3137 //----- (00494820) -------------------------------------------------------- 3136 //----- (00494820) --------------------------------------------------------
3138 unsigned int __fastcall _494820_training_time(unsigned int a1) 3137 unsigned int __fastcall _494820_training_time(unsigned int a1)
3139 { 3138 {
3140 signed int v1; // eax@1 3139 signed int v1; // eax@1
3178 //++v6; 3177 //++v6;
3179 } 3178 }
3180 } 3179 }
3181 return result; 3180 return result;
3182 } 3181 }
3183 // 4EE088: using guessed type __int16 word_4EE088_sound_ids[];
3184 3182
3185 //----- (00443E31) -------------------------------------------------------- 3183 //----- (00443E31) --------------------------------------------------------
3186 void LoadLevel_InitializeLevelStr() 3184 void LoadLevel_InitializeLevelStr()
3187 { 3185 {
3188 3186
3225 } 3223 }
3226 } 3224 }
3227 } 3225 }
3228 3226
3229 //----- (00443F95) -------------------------------------------------------- 3227 //----- (00443F95) --------------------------------------------------------
3230 void OnMapLeave() 3228 void OnMapLeave()
3231 { 3229 {
3232 _evt_raw *test_event; 3230 _evt_raw *test_event;
3233 if (uLevelEVT_NumEvents > 0) 3231 if (uLevelEVT_NumEvents > 0)
3234 { 3232 {
3235 for (uint i = 0; i < uLevelEVT_NumEvents; ++i) 3233 for (uint i = 0; i < uLevelEVT_NumEvents; ++i)
3392 3390
3393 uGameState = GAME_STATE_CHANGE_LOCATION; 3391 uGameState = GAME_STATE_CHANGE_LOCATION;
3394 strcpy(pCurrentMapName, pMapName); 3392 strcpy(pCurrentMapName, pMapName);
3395 uLevel_StartingPointType = start_point; 3393 uLevel_StartingPointType = start_point;
3396 } 3394 }
3397 // 6BE35C: using guessed type int uLevel_StartingPointType;
3398 3395
3399 //----- (004451A8) -------------------------------------------------------- 3396 //----- (004451A8) --------------------------------------------------------
3400 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4) 3397 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4)
3401 { 3398 {
3402 if (!pGUIWindow2) 3399 if (!pGUIWindow2)