fix episode menu for chex.wad (#333)

* fix episode menu for chex.wad

* move partime to deh, fix secret exit

* remove redundant record
This commit is contained in:
Roman Fomin 2021-10-31 00:19:23 +07:00 committed by GitHub
parent 1b0e011591
commit c677b91c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 15 deletions

View File

@ -564,6 +564,7 @@ int epiChoice;
void M_ClearEpisodes(void)
{
EpiDef.numitems = 0;
NewDef.prevMenu = &MainDef;
}
void M_AddEpisode(const char *map, const char *gfx, const char *txt, const char *alpha)
@ -696,7 +697,7 @@ void M_NewGame(int choice)
return;
}
if ( ((gamemode == commercial) && !EpiCustom) || EpiDef.numitems == 1)
if ( ((gamemode == commercial) && !EpiCustom) || EpiDef.numitems == 0)
M_SetupNextMenu(&NewDef);
else
{

View File

@ -42,3 +42,10 @@ HUSTR_E4M6 = E1M5: Caverns of Bazoik
HUSTR_E4M7 = E1M5: Caverns of Bazoik
HUSTR_E4M8 = E1M5: Caverns of Bazoik
HUSTR_E4M9 = E1M5: Caverns of Bazoik
[PARS]
par 1 1 120
par 1 2 360
par 1 3 480
par 1 4 200
par 1 5 360

View File

@ -1,27 +1,14 @@
map E1M1
{
episode = clear
episode = "", "Chex Quest", "c"
partime = 120
}
map E1M2
{
partime = 360
}
map E1M3
{
partime = 480
}
map E1M4
{
partime = 200
nextsecret = "E1M4"
}
map E1M5
{
endgame = true
partime = 360
}