diff --git a/source/common/menu/menu.cpp b/source/common/menu/menu.cpp index e1265fd2c..8c5fc2c34 100644 --- a/source/common/menu/menu.cpp +++ b/source/common/menu/menu.cpp @@ -464,6 +464,7 @@ bool M_SetMenu(FName menu, int param, FName caller) { case NAME_StartGame: M_ClearMenus(); // must be done before starting the level. + if (caller == NAME_MainMenu) GameStartupInfo.Episode = param; STAT_StartNewGame(gVolumeNames[GameStartupInfo.Episode], GameStartupInfo.Skill); gi->StartGame(GameStartupInfo); return false; diff --git a/source/common/menu/menudef.cpp b/source/common/menu/menudef.cpp index 94bedc889..6046e913d 100644 --- a/source/common/menu/menudef.cpp +++ b/source/common/menu/menudef.cpp @@ -151,6 +151,7 @@ static const gamefilter games[] = { { "RedneckRides", GAMEFLAG_RRRA}, { "Blood", GAMEFLAG_BLOOD}, { "ShadowWarrior", GAMEFLAG_SW}, + { "Exhumed", GAMEFLAG_POWERSLAVE|GAMEFLAG_EXHUMED}, }; // for other parts that need to filter by game name. diff --git a/wadsrc/static/demolition/menudef.txt b/wadsrc/static/demolition/menudef.txt index c2a6a68dd..31f6c6d97 100644 --- a/wadsrc/static/demolition/menudef.txt +++ b/wadsrc/static/demolition/menudef.txt @@ -78,6 +78,18 @@ LISTMENU "MainMenu" } NativeTextItem "$MNU_QUITGAME", "q", "QuitMenu" } + ifgame(Exhumed) + { + Position 160, 65 + centermenu + class "Exhumed.MainMenu" + linespacing 22 + NativeTextItem "3460", "n", "StartGame 1" + NativeTextItem "3461", "l", "LoadGameMenu" + NativeTextItem "3462", "m", "StartGame 2" + NativeTextItem "3463", "v", "OptionsMenu" + NativeTextItem "3464", "q", "QuitMenu" + } } //------------------------------------------------------------------------------------------- @@ -153,6 +165,18 @@ LISTMENU "IngameMenu" } NativeTextItem "$MNU_QUITGAME", "q", "QuitMenu" } + ifgame(Exhumed) + { + Position 160, 65 + centermenu + class "Exhumed.MainMenu" + linespacing 22 + NativeTextItem "3460", "n", "StartGame 1" + NativeTextItem "3461", "l", "LoadGameMenu" + NativeTextItem "3462", "m", "StartGame 2" + NativeTextItem "3463", "v", "OptionsMenu" + NativeTextItem "3464", "q", "QuitMenu" + } } //-------------------------------------------------------------------------------------------