u
This commit is contained in:
1 parent
cc4d44f806
commit
1be1e7fcbd
1 file changed
-36
@@ -2237,42 +2237,6 @@ static void P_LoadRawReject(UINT8 *data, size_t count, const char *lumpname)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
static char *levellumps[] =
|
||||
{
|
||||
"label", // ML_LABEL, A separator, name, MAPxx
|
||||
"THINGS", // ML_THINGS, Enemies, items..
|
||||
"LINEDEFS", // ML_LINEDEFS, Linedefs, from editing
|
||||
"SIDEDEFS", // ML_SIDEDEFS, Sidedefs, from editing
|
||||
"VERTEXES", // ML_VERTEXES, Vertices, edited and BSP splits generated
|
||||
"SEGS", // ML_SEGS, Linesegs, from linedefs split by BSP
|
||||
"SSECTORS", // ML_SSECTORS, Subsectors, list of linesegs
|
||||
"NODES", // ML_NODES, BSP nodes
|
||||
"SECTORS", // ML_SECTORS, Sectors, from editing
|
||||
"REJECT", // ML_REJECT, LUT, sector-sector visibility
|
||||
};
|
||||
|
||||
/** Checks a lump and returns whether it is a valid start-of-level marker.
|
||||
*
|
||||
* \param lumpnum Lump number to check.
|
||||
* \return True if the lump is a valid level marker, false if not.
|
||||
*/
|
||||
static inline boolean P_CheckLevel(lumpnum_t lumpnum)
|
||||
{
|
||||
UINT16 file, lump;
|
||||
size_t i;
|
||||
|
||||
for (i = ML_THINGS; i <= ML_REJECT; i++)
|
||||
{
|
||||
file = WADFILENUM(lumpnum);
|
||||
lump = LUMPNUM(lumpnum+1);
|
||||
if (file > numwadfiles || lump < LUMPNUM(lumpnum) || lump > wadfiles[file]->numlumps ||
|
||||
memcmp(wadfiles[file]->lumpinfo[lump].name, levellumps[i], 8) != 0)
|
||||
return false;
|
||||
}
|
||||
return true; // all right
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Sets up a sky texture to use for the level.
|
||||
* The sky texture is used instead of F_SKY1.
|
||||
|
||||
Reference in new issue
Block a user