From 5e57b738d521683472fe41ec20120a6b02563315 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 16 May 2021 12:21:08 +0200 Subject: [PATCH] - removed redundant menu initializsation in M_StartControlPanel. This was a leftover of early development and is no longer needed. --- source/core/menu/razemenu.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source/core/menu/razemenu.cpp b/source/core/menu/razemenu.cpp index 2c03da68f..d62fda37a 100644 --- a/source/core/menu/razemenu.cpp +++ b/source/core/menu/razemenu.cpp @@ -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);