diff --git a/src/p_polyobj.c b/src/p_polyobj.c index a12725b3f..5e5590ced 100644 --- a/src/p_polyobj.c +++ b/src/p_polyobj.c @@ -442,8 +442,6 @@ static void Polyobj_findSegs(polyobj_t *po, seg_t *seg) if (r != po->segCount) continue; - segs[s].dontrenderme = true; - Polyobj_addSeg(po, &segs[s]); } } @@ -502,7 +500,6 @@ newseg: if (r != po->segCount) continue; - segs[q].dontrenderme = true; Polyobj_addSeg(po, &segs[q]); } } diff --git a/src/p_setup.c b/src/p_setup.c index f0e48fbdd..4ec41a346 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -399,25 +399,6 @@ static inline fixed_t P_SegLength(seg_t *seg) return FixedHypot(dx, dy)<<1; } -#ifdef HWRENDER -/** Computes the length of a seg as a float. - * This is needed for OpenGL. - * - * \param seg Seg to compute length for. - * \return Length as a float. - */ -static inline float P_SegLengthFloat(seg_t *seg) -{ - float dx, dy; - - // make a vector (start at origin) - dx = FIXED_TO_FLOAT(seg->v2->x - seg->v1->x); - dy = FIXED_TO_FLOAT(seg->v2->y - seg->v1->y); - - return hypotf(dx, dy); -} -#endif - /** Updates the light offset * * \param li Seg to update the light offsets of diff --git a/src/r_defs.h b/src/r_defs.h index 043c9ba4a..4b3121d75 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -443,7 +443,7 @@ typedef struct line_s sector_t *backsector; size_t validcount; // if == validcount, already checked -#if 1//#ifdef WALLSPLATS +#ifdef WALLSPLATS void *splats; // wallsplat_t list #endif INT32 firsttag, nexttag; // improves searches for tags. @@ -490,7 +490,7 @@ typedef struct subsector_s INT16 numlines; UINT32 firstline; struct polyobj_s *polyList; // haleyjd 02/19/06: list of polyobjects -#if 1//#ifdef FLOORSPLATS +#ifdef FLOORSPLATS void *splats; // floorsplat_t list #endif size_t validcount; @@ -544,14 +544,14 @@ typedef struct seg_s sector_t *backsector; fixed_t length; // precalculated seg length + #ifdef HWRENDER // new pointers so that AdjustSegs doesn't mess with v1/v2 - polyvertex_t *pv1; // polyvertex_t - polyvertex_t *pv2; // polyvertex_t + polyvertex_t *pv1; + polyvertex_t *pv2; #endif polyobj_t *polyseg; - boolean dontrenderme; // Fake contrast calculated on level load SINT8 lightOffset; @@ -639,15 +639,6 @@ typedef struct drawseg_s vertex_t leftpos, rightpos; // Used for rendering FOF walls with slopes } drawseg_t; -typedef enum -{ - PALETTE = 0, // 1 byte is the index in the doom palette (as usual) - INTENSITY = 1, // 1 byte intensity - INTENSITY_ALPHA = 2, // 2 byte: alpha then intensity - RGB24 = 3, // 24 bit rgb - RGBA32 = 4, // 32 bit rgba -} pic_mode_t; - // rotsprite #ifdef ROTSPRITE typedef struct @@ -692,26 +683,6 @@ typedef struct // the [0] is &columnofs[width] } ATTRPACK softwarepatch_t; -#ifdef _MSC_VER -#pragma warning(disable : 4200) -#endif - -// a pic is an unmasked block of pixels, stored in horizontal way -typedef struct -{ - INT16 width; - UINT8 zero; // set to 0 allow autodetection of pic_t - // mode instead of patch or raw - UINT8 mode; // see pic_mode_t above - INT16 height; - INT16 reserved1; // set to 0 - UINT8 data[0]; -} ATTRPACK pic_t; - -#ifdef _MSC_VER -#pragma warning(default : 4200) -#endif - #if defined(_MSC_VER) #pragma pack() #endif