- copy size info from defaults when starting a list menu block.

This commit is contained in:
Christoph Oelckers 2022-04-15 22:30:11 +02:00
parent e7f78ce911
commit a669d3718f

View file

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