Skip to content

Commit

Permalink
- make sure the last notch on the start screen is rendered.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 7, 2022
1 parent 121045e commit 07a8701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/startscreen/startscreen_hexen.cpp
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/d_main.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07a8701

Please sign in to comment.