mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- copy size info from defaults when starting a list menu block.
This commit is contained in:
parent
e7f78ce911
commit
a669d3718f
1 changed files with 6 additions and 0 deletions
|
@ -753,6 +753,12 @@ static void ParseListMenu(FScanner &sc)
|
|||
desc->mFromEngine = fileSystem.GetFileContainer(sc.LumpNum) == 0; // flags menu if the definition is from the IWAD.
|
||||
desc->mVirtWidth = -2;
|
||||
desc->mCustomSizeSet = false;
|
||||
if (DefaultListMenuSettings->mCustomSizeSet)
|
||||
{
|
||||
desc->mVirtHeight = DefaultListMenuSettings->mVirtHeight;
|
||||
desc->mVirtWidth = DefaultListMenuSettings->mVirtWidth;
|
||||
desc->mCustomSizeSet = true;
|
||||
}
|
||||
|
||||
ParseListMenuBody(sc, desc, -1);
|
||||
ReplaceMenu(sc, desc);
|
||||
|
|
Loading…
Reference in a new issue