Fix build warnings

This commit is contained in:
spherallic 2024-06-06 00:34:45 +02:00
parent 419cfe8007
commit 2ae5c6d9fc
3 changed files with 3 additions and 4 deletions

View file

@ -1788,7 +1788,7 @@ static void HWR_RenderExtraTexture(unsigned which, side_t *side, sector_t *sec_f
static void HWR_RenderFFloorExtraTextures(ffloor_t *pfloor, v2d_t vs, v2d_t ve, float xcliplow, float xcliphigh, boolean use_3dfloor_blend, FSurfaceInfo Surf, FBITFIELD blendmode)
{
side_t *pside = R_GetFFloorSide(gl_curline, pfloor);
side_t *pside = R_GetFFloorSide(gl_curline->linedef, pfloor, pfloor->target);
sector_t *psector = pfloor->master->frontsector;
if (use_3dfloor_blend)

View file

@ -498,7 +498,6 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
fixed_t textop, texbottom, texheight;
fixed_t texmid, delta1, delta2;
INT32 texnum = R_GetTextureNum(side->midtexture); // make sure the texture is actually valid
boolean wrapmidtex = linedef->flags & ML_WRAPMIDTEX || side->flags & SIDEFLAG_WRAP_MIDTEX;
if (texnum) {
fixed_t scaley = abs(side->scaley_mid);

View file

@ -2948,7 +2948,7 @@ static fixed_t R_GetLowestSidedefTexture(side_t *side)
static fixed_t R_GetFFloorTopZAt(const drawseg_t *ds, const ffloor_t *pfloor, fixed_t x, fixed_t y)
{
side_t *side = R_GetFFloorSide(ds->curline, pfloor);
side_t *side = R_GetFFloorSide(ds->curline->linedef, pfloor, pfloor->target);
if (side->flags & SIDEFLAG_HASEDGETEXTURES)
return P_GetFFloorTopZAt(pfloor, x, y) + R_GetHighestSidedefTexture(side);
@ -2957,7 +2957,7 @@ static fixed_t R_GetFFloorTopZAt(const drawseg_t *ds, const ffloor_t *pfloor, fi
static fixed_t R_GetFFloorBottomZAt(const drawseg_t *ds, const ffloor_t *pfloor, fixed_t x, fixed_t y)
{
side_t *side = R_GetFFloorSide(ds->curline, pfloor);
side_t *side = R_GetFFloorSide(ds->curline->linedef, pfloor, pfloor->target);
if (side->flags & SIDEFLAG_HASEDGETEXTURES)
return P_GetFFloorBottomZAt(pfloor, x, y) - R_GetLowestSidedefTexture(side);