From 1be1e7fcbd7279e0543dd5bb7676abca28d12653 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 28 Feb 2024 04:53:42 +0100 Subject: [PATCH] u --- src/p_setup.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index 36da98814..5d5c56ac3 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -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.