From ab99b3b79d7be734a7840ec94903b9a12ea3826a Mon Sep 17 00:00:00 2001 From: NY00123 Date: Fri, 1 May 2020 18:47:30 +0300 Subject: [PATCH] SW: Call FunctionKeys from getinput only if the latter is called from faketimerhandler. This should fix the timing of playing an RTS file's sound and sending the corresponding message. --- source/sw/src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index aab1a1786..58c6fcad1 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -3502,7 +3502,8 @@ getinput(SW_PACKET *loc, SWBOOL tied) SinglePlayInput(pp); #endif - FunctionKeys(pp); + if (!tied) + FunctionKeys(pp); if (buttonMap.ButtonDown(gamefunc_Toggle_Crosshair)) {