Mercurial > mm7
diff mm7_2.cpp @ 363:2bc1c8d68f41
Allocator and SpellCost Tip
author | Gloval |
---|---|
date | Fri, 22 Feb 2013 00:48:54 +0400 |
parents | 4a236657a0be |
children | 85edec9da96b |
line wrap: on
line diff
--- a/mm7_2.cpp Thu Feb 21 17:24:15 2013 +0600 +++ b/mm7_2.cpp Fri Feb 22 00:48:54 2013 +0400 @@ -11705,6 +11705,7 @@ { case WM_SETTEXT: return DefWindowProcW(hWnd, Msg, wParam, lParam); }; + v4 = lParam; if ( Msg > WM_SYSCOMMAND ) @@ -12200,6 +12201,7 @@ { if ( !(dword_6BE364_game_settings_1 & 0x100) ) { + while(initing); //ADDED spinlock to allow int players ets! Gloval dword_4E98BC_bApplicationActive = 0; if ( (pVideoPlayer->pSmackerMovie || pVideoPlayer->pBinkMovie) && pVideoPlayer->bPlayingMovie ) pVideoPlayer->bStopBeforeSchedule = 1; @@ -12852,6 +12854,7 @@ //----- (004651F4) -------------------------------------------------------- bool MM7_Initialize() { +initing=true; //ADDED Gloval wchar_t pCurrentDir[1024]; _wgetcwd(pCurrentDir, 1024); @@ -13235,6 +13238,7 @@ { uTurnSpeed = (unsigned int)uCPUSpeed < 0xC7 ? 128 : 64; // adjust turn speed to estimated fps } + initing=false; //ADDED Gloval return true; }