mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- make sure the last notch on the start screen is rendered.
This commit is contained in:
parent
121045e48d
commit
07a8701f8d
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue