- skip the fade-in of the screen job if it starts while the game is paused.

While this works with the current code it simply does not look good.
This commit is contained in:
Christoph Oelckers 2021-04-16 22:21:57 +02:00
parent 03d517c509
commit 3910146740

View file

@ -175,7 +175,7 @@ public:
actionState = clearbefore ? State_Clear : State_Run; actionState = clearbefore ? State_Clear : State_Run;
if (index < jobs.Size()) if (index < jobs.Size())
{ {
jobs[index].job->fadestate = jobs[index].job->fadestyle & DScreenJob::fadein? DScreenJob::fadein : DScreenJob::visible; jobs[index].job->fadestate = !paused && jobs[index].job->fadestyle & DScreenJob::fadein? DScreenJob::fadein : DScreenJob::visible;
} }
inputState.ClearAllInput(); inputState.ClearAllInput();
} }