- make sure the last notch on the start screen is rendered.

This commit is contained in:
Christoph Oelckers 2022-06-07 23:13:59 +02:00
parent 121045e48d
commit 07a8701f8d
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -3390,6 +3390,8 @@ static int D_InitGame(const FIWADInfo* iwad_info, TArray<FString>& 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;
}