- SCreenjob fixes

Still doesn’r show anything but we got it all set up now.
This commit is contained in:
Christoph Oelckers 2022-04-22 12:43:08 +02:00
commit 336c45aaa4
6 changed files with 26 additions and 13 deletions

View file

@ -956,8 +956,7 @@ void RunIntermission(DIntermissionController* intermissionScreen, DObject* statu
if (!ScreenJobValidate())
{
runner->Destroy();
runner = nullptr;
DeleteScreenJob();
if (completion) completion(false);
completion = nullptr;
return;
@ -1010,7 +1009,11 @@ void G_DoCompleted (void)
}
bool endgame = intermissionScreen && intermissionScreen->mEndGame;
intermissionScreen = primaryLevel->CreateIntermission();
RunIntermission(intermissionScreen, statusScreen, [=](bool) { if (!endgame) primaryLevel->WorldDone(); });
RunIntermission(intermissionScreen, statusScreen, [=](bool)
{
if (!endgame) primaryLevel->WorldDone();
});
}
//==========================================================================