- 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

View file

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