From a8494d7de4c83e1d9f726c9acc4081c74e5c3172 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Mon, 15 Jun 2020 18:31:53 -0700 Subject: [PATCH] Disabled legacy win32 key code that was causing a random crash. --- code/REDALERT/KEY.CPP | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/code/REDALERT/KEY.CPP b/code/REDALERT/KEY.CPP index eef74e9..49eca02 100644 --- a/code/REDALERT/KEY.CPP +++ b/code/REDALERT/KEY.CPP @@ -517,17 +517,17 @@ bool WWKeyboardClass::Is_Buffer_Empty(void) const *=============================================================================================*/ void WWKeyboardClass::Fill_Buffer_From_System(void) { - if (!Is_Buffer_Full()) - { - MSG msg; - while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { - if (!GetMessage( &msg, NULL, 0, 0 )) { - return; - } - TranslateMessage(&msg); - DispatchMessage(&msg); - } - } + //if (!Is_Buffer_Full()) + //{ + // MSG msg; + // while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { + // if (!GetMessage( &msg, NULL, 0, 0 )) { + // return; + // } + // TranslateMessage(&msg); + // DispatchMessage(&msg); + // } + //} }