mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 06:42:09 +00:00
- Fixed: If an episode skips the skill menu, it should also skip the confirm skill menu
if the default skill requests confirmation. SVN r3347 (trunk)
This commit is contained in:
parent
9d67dc36e8
commit
ddd5fe7535
1 changed files with 4 additions and 3 deletions
|
@ -1320,8 +1320,8 @@ void M_StartupSkillMenu(FGameStartup *gs)
|
|||
FSkillInfo &skill = AllSkills[i];
|
||||
FListMenuItem *li;
|
||||
// Using a different name for skills that must be confirmed makes handling this easier.
|
||||
FName action = skill.MustConfirm? NAME_StartgameConfirm : NAME_Startgame;
|
||||
|
||||
FName action = (skill.MustConfirm && !AllEpisodes[gs->Episode].mNoSkill) ?
|
||||
NAME_StartgameConfirm : NAME_Startgame;
|
||||
FString *pItemText = NULL;
|
||||
if (gs->PlayerClass != NULL)
|
||||
{
|
||||
|
@ -1388,7 +1388,8 @@ fail:
|
|||
FSkillInfo &skill = AllSkills[i];
|
||||
FOptionMenuItem *li;
|
||||
// Using a different name for skills that must be confirmed makes handling this easier.
|
||||
const char *action = skill.MustConfirm? "StartgameConfirm" : "Startgame";
|
||||
const char *action = (skill.MustConfirm && !AllEpisodes[gs->Episode].mNoSkill) ?
|
||||
"StartgameConfirm" : "Startgame";
|
||||
|
||||
FString *pItemText = NULL;
|
||||
if (gs->PlayerClass != NULL)
|
||||
|
|
Loading…
Reference in a new issue