From 07a8701f8da1c08140503f6695187a271390c8ff Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 7 Jun 2022 23:13:59 +0200 Subject: [PATCH] - make sure the last notch on the start screen is rendered. --- src/common/startscreen/startscreen_hexen.cpp | 2 +- src/d_main.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/startscreen/startscreen_hexen.cpp b/src/common/startscreen/startscreen_hexen.cpp index 122b6f362..6eef73599 100644 --- a/src/common/startscreen/startscreen_hexen.cpp +++ b/src/common/startscreen/startscreen_hexen.cpp @@ -141,7 +141,7 @@ bool FHexenStartScreen::DoProgress(int advance) { int notch_pos, x, y; - if (CurPos < MaxPos) + if (CurPos <= MaxPos) { int numnotches = (16 * 32) / NotchBits.GetWidth(); notch_pos = ((CurPos + 1) * numnotches) / MaxPos; diff --git a/src/d_main.cpp b/src/d_main.cpp index b28bd24f6..b64142c07 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3390,6 +3390,8 @@ static int D_InitGame(const FIWADInfo* iwad_info, TArray& allwads, TArr { StartScreen->Progress(max_progress); // advance progress bar to the end. StartScreen->Render(true); + StartScreen->Progress(max_progress); // do this again because Progress advances the counter after redrawing. + StartScreen->Render(true); delete StartScreen; StartScreen = NULL; }