- do not accept any input in the first 0.1 seconds of running a screen job.

This is to avoid accidental skipping by pending game input.
This commit is contained in:
Christoph Oelckers 2020-10-13 23:36:27 +02:00
parent df86a11d23
commit 129aa864dd
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,6 @@ public:
auto& job = jobs[index];
auto now = I_GetTimeNS();
bool processed = job.job->ProcessInput();
bool skiprequest = inputState.CheckAllInput() && !processed;
if (startTime == -1)
{
lastTime = startTime = now;
@ -763,6 +762,7 @@ public:
clock += now - lastTime;
if (clock == 0) clock = 1;
}
bool skiprequest = clock > 100'000'000 && inputState.CheckAllInput() && !processed;
lastTime = now;
if (screenfade < 1.f && !M_Active())