Allow for progress bar completion

This commit is contained in:
Marcus Minhorst 2025-08-06 17:58:02 -04:00 committed by Ricardo Luís Vaz Silva
commit 54b80b96cd
6 changed files with 18 additions and 20 deletions

View file

@ -3366,7 +3366,7 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
if (!batchrun) Printf ("ST_Init: Init startup screen.\n");
if (!restart)
{
StartWindow = FStartupScreen::CreateInstance (TexMan.GuesstimateNumTextures() + 5);
StartWindow = FStartupScreen::CreateInstance(max_progress);
}
else
{
@ -3581,7 +3581,9 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
}
S_Sound (CHAN_BODY, 0, "misc/startupdone", 1, ATTN_NONE);
if (!batchrun) Printf ("Init complete.\n");
StartWindow->Progress(max_progress);
if (StartScreen)
{
StartScreen->Progress(max_progress); // advance progress bar to the end.