From 102f47382177ae4316c436e8ee510822862b1f6e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Jul 2020 19:55:06 +0200 Subject: [PATCH] - clear the input state before starting a cutscene to ensure that it won't get skipped by residual input data. --- source/core/screenjob.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/screenjob.cpp b/source/core/screenjob.cpp index bccd5d599..3a63517e5 100644 --- a/source/core/screenjob.cpp +++ b/source/core/screenjob.cpp @@ -331,6 +331,7 @@ public: actionState = clearbefore ? State_Clear : State_Run; if (index < jobs.Size()) screenfade = jobs[index].job->fadestyle & DScreenJob::fadein ? 0.f : 1.f; startTime = -1; + inputState.ClearAllInput(); } int DisplayFrame()