From 20c8fb646d0d5aff9dcbf407ff443ec356c1aac9 Mon Sep 17 00:00:00 2001 From: Wanne Date: Fri, 26 Jun 2009 08:36:20 +0000 Subject: [PATCH] - Bugfix: Reset the pressed keys (ALT, \) after the console opened git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3031 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Standard Gaming Platform/sgp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Standard Gaming Platform/sgp.cpp b/Standard Gaming Platform/sgp.cpp index 6ff38bb5..bb403517 100644 --- a/Standard Gaming Platform/sgp.cpp +++ b/Standard Gaming Platform/sgp.cpp @@ -545,13 +545,13 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP g_Console.Create(ghWindow); cout << "LUA console ready" << endl; cout << "> "; + + // Reset the pressed keys + gfKeyState[ ALT ] = FALSE; + gfKeyState[ 219 ] = FALSE; // "\" #endif } - } - // Reset the pressed keys - gfKeyState[ ALT ] = FALSE; - gfKeyState[ CTRL ] = FALSE; - gfKeyState[ 219 ] = FALSE; // "\" + } } break;