From aea6467d0077b54eb6993bcc5dd10298db33b850 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 27 Jul 2020 19:12:49 +0200 Subject: [PATCH] - call D_ProcessEvents in Blood's main loop. --- source/blood/src/blood.cpp | 1 + source/blood/src/controls.cpp | 2 -- source/games/duke/src/input.cpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/blood/src/blood.cpp b/source/blood/src/blood.cpp index 3d8824e20..2cbbb1ad1 100644 --- a/source/blood/src/blood.cpp +++ b/source/blood/src/blood.cpp @@ -1184,6 +1184,7 @@ RESTART: while (!gQuitGame) { bool bDraw; + D_ProcessEvents(); if (gGameStarted) { char gameUpdate = false; diff --git a/source/blood/src/controls.cpp b/source/blood/src/controls.cpp index 74c9ab766..a564a6992 100644 --- a/source/blood/src/controls.cpp +++ b/source/blood/src/controls.cpp @@ -102,8 +102,6 @@ void ctrlGetInput(void) GINPUT input = {}; - D_ProcessEvents(); - bool mouseaim = in_mousemode || buttonMap.ButtonDown(gamefunc_Mouse_Aiming); if (!mouseaim) gInput.keyFlags.lookCenter = 1; diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index bc2630acc..103647670 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -1224,7 +1224,6 @@ void GetInput() return; } - D_ProcessEvents(); if (numplayers == 1) { setlocalplayerinput(p);