- fixed: The subsector serializing code accessed the subsector array before validating the index.

- added episode names to episode definitions of Doom 1 and Chex Quest.


SVN r2820 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-18 12:37:22 +00:00
parent eb031d73e7
commit 051ae3224f
3 changed files with 7 additions and 3 deletions

View file

@ -590,7 +590,7 @@ void P_SerializeSubsectors(FArchive &arc)
by = 0;
for(int j=0;j<8;j++)
{
if ((subsectors[i+j].flags & SSECF_DRAWN) && i+j<numsubsectors)
if (i+j<numsubsectors && (subsectors[i+j].flags & SSECF_DRAWN))
{
by |= (1<<j);
}

View file

@ -109,6 +109,7 @@ clearepisodes
episode e1m1
{
picname = "M_EPI1"
name = "Chex Quest"
key = "k"
}

View file

@ -21,28 +21,31 @@ clearepisodes
episode e1m1
{
picname = "M_EPI1"
name = "Knee-Deep in the Dead"
key = "k"
}
episode e2m1
{
picname = "M_EPI2"
name = "The Shores of Hell"
key = "t"
}
episode e3m1
{
picname = "M_EPI3"
name = "Inferno"
key = "i"
}
episode e4m1
{
picname = "M_EPI4"
name = "Thy Flesh Consumed"
key = "t"
optional
}
}
// Registered/Retail Episode 1