- 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:
Randy Heit 2008-09-06 04:03:53 +00:00
commit 535f7d92ba
3 changed files with 17 additions and 3 deletions

View file

@ -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))