mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- fixed Exhumed's game startup.
This commit is contained in:
parent
fb6267dce0
commit
03e57fa3d7
3 changed files with 5 additions and 4 deletions
|
@ -115,6 +115,7 @@ bool M_SetSpecialMenu(FName& menu, int param)
|
|||
|
||||
case NAME_Startgame:
|
||||
case NAME_StartgameNoSkill:
|
||||
menu = NAME_Startgame;
|
||||
NewGameStartupInfo.Skill = param;
|
||||
if (menu == NAME_StartgameNoSkill) NewGameStartupInfo.Episode = param;
|
||||
if (gi->StartGame(NewGameStartupInfo))
|
||||
|
|
|
@ -92,8 +92,8 @@ void GameInterface::QuitToTitle()
|
|||
|
||||
bool GameInterface::StartGame(FNewGameStartup& gs)
|
||||
{
|
||||
auto map = FindMapByLevelNum(gs.Episode);
|
||||
DeferedStartGame(map, gs.Skill); // 0 is training, 1 is the regular game - the game does not have skill levels.
|
||||
auto map = FindMapByLevelNum(gs.Skill); // 0 is training, 1 is the regular game - the game does not have skill levels.
|
||||
DeferedStartGame(map, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ LISTMENU "MainMenu"
|
|||
ExhumedPlasma
|
||||
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 1
|
||||
ExhumedTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
|
||||
ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameSkill", 0
|
||||
ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameNoSkill", 0
|
||||
ExhumedTextItem "$MNU_OPTIONS", "v", "OptionsMenu"
|
||||
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ LISTMENU "IngameMenu"
|
|||
ExhumedLogo
|
||||
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 1
|
||||
ExhumedTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
|
||||
ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameSkill", 0
|
||||
ExhumedTextItem "$TXT_EX_MAP00", "m", "StartGameNoSkill", 0
|
||||
ExhumedTextItem "$MNU_OPTIONS", "v", "OptionsMenu"
|
||||
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue