- removed redundant menu initializsation in M_StartControlPanel.

This was a leftover of early development and is no longer needed.
This commit is contained in:
Christoph Oelckers 2021-05-16 12:21:08 +02:00
parent 5bb438b817
commit 5e57b738d5

View file

@ -192,16 +192,10 @@ bool M_SetSpecialMenu(FName& menu, int param)
void M_StartControlPanel(bool makeSound, bool)
{
static bool created = false;
// intro might call this repeatedly
if (CurrentMenu != NULL)
return;
if (!created) // Cannot do this earlier.
{
created = true;
M_CreateMenus();
}
GSnd->SetSfxPaused(true, PAUSESFX_MENU);
gi->MenuOpened();
if (makeSound && menu_sounds) gi->MenuSound(ActivateSound);