mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Added the "extended" keyword for episode definitions to define episodes
that are only available in the extended version of Heretic. SVN r1199 (trunk)
This commit is contained in:
parent
ee6c208917
commit
535f7d92ba
3 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,6 @@
|
|||
September 5, 2008
|
||||
- Added the "extended" keyword for episode definitions to define episodes
|
||||
that are only available in the extended version of Heretic.
|
||||
- Added hexendemo.wad and hexdemo.wad as aliases for the demo Hexen IWAD.
|
||||
- Added IWAD checks for freedoom1.wad and freedm.wad.
|
||||
- The garbage collector now has an opportunity to step each time individual
|
||||
|
|
|
@ -1285,6 +1285,7 @@ static void ParseEpisodeInfo (FScanner &sc)
|
|||
char key = 0;
|
||||
bool noskill = false;
|
||||
bool optional = false;
|
||||
bool extended = false;
|
||||
|
||||
// Get map name
|
||||
sc.MustGetString ();
|
||||
|
@ -1305,9 +1306,14 @@ static void ParseEpisodeInfo (FScanner &sc)
|
|||
{
|
||||
if (sc.Compare ("optional"))
|
||||
{
|
||||
// For M4 in Doom and M4 and M5 in Heretic
|
||||
// For M4 in Doom
|
||||
optional = true;
|
||||
}
|
||||
else if (sc.Compare ("extended"))
|
||||
{
|
||||
// For M4 and M5 in Heretic
|
||||
extended = true;
|
||||
}
|
||||
else if (sc.Compare ("name"))
|
||||
{
|
||||
sc.MustGetString ();
|
||||
|
@ -1341,6 +1347,12 @@ static void ParseEpisodeInfo (FScanner &sc)
|
|||
}
|
||||
while (sc.GetString ());
|
||||
|
||||
if (extended && !(gameinfo.flags & GI_MENUHACK_EXTENDED))
|
||||
{ // If the episode is for the extended Heretic, but this is
|
||||
// not the extended Heretic, ignore it.
|
||||
return;
|
||||
}
|
||||
|
||||
if (optional && !remove)
|
||||
{
|
||||
if (!P_CheckMapData(map))
|
||||
|
|
|
@ -47,12 +47,12 @@ episode e3m1
|
|||
episode e4m1
|
||||
name "$MNU_OSSUARY"
|
||||
key o
|
||||
optional
|
||||
extended
|
||||
|
||||
episode e5m1
|
||||
name "$MNU_DEMESNE"
|
||||
key s
|
||||
optional
|
||||
extended
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue