From e87ad0fb384ea27a80be3da403ce988235a204e9 Mon Sep 17 00:00:00 2001 From: Nev3r Date: Sat, 18 Apr 2020 00:05:55 +0200 Subject: [PATCH] Delete old taglists. --- src/p_setup.c | 3 --- src/p_spec.c | 16 ---------------- src/r_defs.h | 2 -- 3 files changed, 21 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index d92eb929c..baa71c6b3 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -852,8 +852,6 @@ static void P_LoadVertices(UINT8 *data) static void P_InitializeSector(sector_t *ss) { - ss->nexttag = ss->firsttag = -1; - memset(&ss->soundorg, 0, sizeof(ss->soundorg)); ss->validcount = 0; @@ -976,7 +974,6 @@ static void P_InitializeLinedef(line_t *ld) #ifdef WALLSPLATS ld->splats = NULL; #endif - ld->firsttag = ld->nexttag = -1; #ifdef POLYOBJECTS ld->polyobj = NULL; #endif diff --git a/src/p_spec.c b/src/p_spec.c index 5f5510372..81a5e0e49 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1383,22 +1383,6 @@ void P_RunNightsCapsuleTouchExecutors(mobj_t *actor, boolean entering, boolean e */ static inline void P_InitTagLists(void) { - register size_t i; - - for (i = numsectors - 1; i != (size_t)-1; i--) - { - size_t j = (unsigned)sectors[i].tag % numsectors; - sectors[i].nexttag = sectors[j].firsttag; - sectors[j].firsttag = (INT32)i; - } - - for (i = numlines - 1; i != (size_t)-1; i--) - { - size_t j = (unsigned)lines[i].tag % numlines; - lines[i].nexttag = lines[j].firsttag; - lines[j].firsttag = (INT32)i; - } - Taglist_InitGlobalTables(); } diff --git a/src/r_defs.h b/src/r_defs.h index 6dc9cf66e..41d141ce8 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -293,7 +293,6 @@ typedef struct sector_s INT16 special; UINT16 tag; taglist_t tags; - INT32 nexttag, firsttag; // for fast tag searches // origin for any sounds played by the sector // also considered the center for e.g. Mario blocks @@ -433,7 +432,6 @@ typedef struct line_s #if 1//#ifdef WALLSPLATS void *splats; // wallsplat_t list #endif - INT32 firsttag, nexttag; // improves searches for tags. #ifdef POLYOBJECTS polyobj_t *polyobj; // Belongs to a polyobject? #endif