Skip to content

Commit

Permalink
- removed redundant menu initializsation in M_StartControlPanel.
Browse files Browse the repository at this point in the history
This was a leftover of early development and is no longer needed.
  • Loading branch information
coelckers committed May 16, 2021
1 parent 5bb438b commit 5e57b73
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source/core/menu/razemenu.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5e57b73

Please sign in to comment.