mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +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_Startgame:
|
||||||
case NAME_StartgameNoSkill:
|
case NAME_StartgameNoSkill:
|
||||||
|
menu = NAME_Startgame;
|
||||||
NewGameStartupInfo.Skill = param;
|
NewGameStartupInfo.Skill = param;
|
||||||
if (menu == NAME_StartgameNoSkill) NewGameStartupInfo.Episode = param;
|
if (menu == NAME_StartgameNoSkill) NewGameStartupInfo.Episode = param;
|
||||||
if (gi->StartGame(NewGameStartupInfo))
|
if (gi->StartGame(NewGameStartupInfo))
|
||||||
|
|
|
@ -92,8 +92,8 @@ void GameInterface::QuitToTitle()
|
||||||
|
|
||||||
bool GameInterface::StartGame(FNewGameStartup& gs)
|
bool GameInterface::StartGame(FNewGameStartup& gs)
|
||||||
{
|
{
|
||||||
auto map = FindMapByLevelNum(gs.Episode);
|
auto map = FindMapByLevelNum(gs.Skill); // 0 is training, 1 is the regular game - the game does not have skill levels.
|
||||||
DeferedStartGame(map, gs.Skill); // 0 is training, 1 is the regular game - the game does not have skill levels.
|
DeferedStartGame(map, 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ LISTMENU "MainMenu"
|
||||||
ExhumedPlasma
|
ExhumedPlasma
|
||||||
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 1
|
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 1
|
||||||
ExhumedTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
|
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_OPTIONS", "v", "OptionsMenu"
|
||||||
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
|
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ LISTMENU "IngameMenu"
|
||||||
ExhumedLogo
|
ExhumedLogo
|
||||||
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 1
|
ExhumedTextItem "$MNU_NEWGAME", "n", "StartGameNoSkill", 1
|
||||||
ExhumedTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
|
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_OPTIONS", "v", "OptionsMenu"
|
||||||
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
|
ExhumedTextItem "$MNU_QUITGAME", "q", "QuitMenu"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue