Mercurial > might-and-magic-trilogy
diff mm7_2.cpp @ 82:f9a33f75bae3
Qick Record
author | Nomad |
---|---|
date | Mon, 29 Oct 2012 00:41:51 +0200 |
parents | 75994455e457 |
children | 8c6308bb19b3 6c42178c226e 62bfa3ffe7db |
line wrap: on
line diff
--- a/mm7_2.cpp Sun Oct 28 18:51:52 2012 +0200 +++ b/mm7_2.cpp Mon Oct 29 00:41:51 2012 +0200 @@ -9311,7 +9311,7 @@ } //----- (00452C49) -------------------------------------------------------- -void __cdecl InitializeGameText() +void InitializeGameText() { //char *v0; // ebx@1 char *v1; // eax@3 @@ -12475,16 +12475,16 @@ LABEL_240: if ( pVideoPlayer->pVideoFrame.pPixels != (unsigned __int16 *)v31 ) pVideoPlayer->bStopBeforeSchedule = 1; - if ( pAsyncMouse == (void *)v31 ) + if (!pAsyncMouse) pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16); - if ( pGame != (Game *)v31 ) - { - if ( pAsyncMouse != (void *)v31 ) + if (pGame) + { + if (pAsyncMouse) goto _def_wnd_proc; v33 = GetPickDepth(); pGame->PickMouse(v33, (unsigned __int16)lParam, lParam >> 16, v31, &stru_F93E30, &a4); } - if ( pAsyncMouse == (void *)v31 ) + if (!pAsyncMouse) { sub_416D62_ShowPopupWindow_MonsterRecord_ItemInfo_etcsub_416D62(0); return DefWindowProcA(hWnd, Msg, wParam, v4);