# HG changeset patch # User Ritor1 # Date 1406115287 -21600 # Node ID 1e1b2728b3d394f95ac765d4b8d2903f16497923 # Parent 22ac062b40f7fd33e382e739c109cd4e1c712181 moved pKeyActionMap diff -r 22ac062b40f7 -r 1e1b2728b3d3 Build/Visual Studio 2010/World of Might and Magic.vcxproj.user --- a/Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Wed Jul 23 16:06:33 2014 +0600 +++ b/Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Wed Jul 23 17:34:47 2014 +0600 @@ -3,7 +3,7 @@ ..\..\..\MM_VII WindowsLocalDebugger - -nomarg, -novideo + -nomarg, $(OutDir)$(TargetName)$(TargetExt) \ No newline at end of file diff -r 22ac062b40f7 -r 1e1b2728b3d3 Keyboard.cpp --- a/Keyboard.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/Keyboard.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -134,6 +134,8 @@ ResetKeys(); + uNumKeysPressed = 0; + uGameMenuUI_CurentlySelectedKeyIdx = -1; } // 506E68: using guessed type int uGameMenuUI_CurentlySelectedKeyIdx; diff -r 22ac062b40f7 -r 1e1b2728b3d3 OSWindow.cpp --- a/OSWindow.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/OSWindow.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -394,7 +394,7 @@ return *result = 0, true; } - return false; + return *result = 0, false; } @@ -479,7 +479,7 @@ if (window && window->api_handle == hwnd) //Uninitialized memory access { LPARAM result; - if (window->WinApiMessageProc(msg, wparam, lparam, &result)) + if (window->WinApiMessageProc(msg, wparam, lparam, &result))//Unhandled application exception return result; } //Функция DefWindowProc вызывается оконной процедурой по умолчанию, чтобы обеспечить обработку по умолчанию любого diff -r 22ac062b40f7 -r 1e1b2728b3d3 Timer.cpp --- a/Timer.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/Timer.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -43,7 +43,6 @@ } } - //----- (00426363) -------------------------------------------------------- void Timer::Resume() { diff -r 22ac062b40f7 -r 1e1b2728b3d3 mm7_2.cpp --- a/mm7_2.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/mm7_2.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -1459,7 +1459,7 @@ MM6_Initialize(pMM6IniFile); - pKeyActionMap = new KeyboardActionMapping; + //pKeyActionMap = new KeyboardActionMapping; // _CrtDumpMemoryLeaks(); OnTimer(1); @@ -1757,13 +1757,6 @@ //----- (00465D0B) -------------------------------------------------------- void SecondaryInitialization() { - //__int16 v4; // ax@4 - //signed int v5; // esi@5 - //int v6; // ecx@6 - //int v7; // edx@7 - //ObjectDesc *v8; // eax@7 - //char pContainer[32]; // [sp+10h] [bp-Ch]@9 - pMouse->Initialize(window); pItemsTable = new ItemsTable; @@ -2041,7 +2034,7 @@ uCPUSpeed = 2048; // about 2GHz //_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF );//Ritor1: for memory test(для проверки памяти) - + pKeyActionMap = new KeyboardActionMapping; if (!MM7_Initialize(640, 480))//задаётся размер окна { Log::Warning(L"MM init: failed");