Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
- fixed episode startup completely.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 10, 2019
1 parent 719bb19 commit eb273ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prboom2/src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ menu_t EpiDef =

// This is for customized episode menus
int EpiCustom;
short EpiMenuEpi[8], EpiMenuMap[8];
short EpiMenuEpi[8] = { 1, 1, 1, 1, -1, -1, -1, -1 }, EpiMenuMap[8] = { 1,2,3,4,-1,-1,-1,-1 };

//
// M_Episode
Expand Down Expand Up @@ -730,9 +730,9 @@ void M_ChooseSkill(int choice)
M_StartMessage(s_NIGHTMARE,M_VerifyNightmare,true);
return;
}
if (EpiMenuEpi[epi] == -1 || EpiMenuMap[epi] == -1) return; // There is no map to start here.

if (!EpiCustom) G_DeferedInitNew(choice,epi+1,1);
else G_DeferedInitNew(choice, EpiMenuEpi[epi], EpiMenuMap[epi]);
G_DeferedInitNew(choice, EpiMenuEpi[epi], EpiMenuMap[epi]);
M_ClearMenus ();
}

Expand Down

0 comments on commit eb273ff

Please sign in to comment.