Merge branch 'fix-solid-midtex' into 'master'

Fix solid midtextures

Closes #349

See merge request KartKrew/Kart!799
This commit is contained in:
Sal 2022-12-06 10:22:16 +00:00
commit b51769c015

View file

@ -534,7 +534,7 @@ P_GetMidtextureTopBottom
texbottom = back->floorheight + side->rowoffset;
textop = back->ceilingheight + side->rowoffset;
}
else if (!!(linedef->flags & ML_DONTPEGBOTTOM) ^ !!(linedef->flags & ML_MIDPEG))
else if (linedef->flags & ML_MIDPEG)
{
texbottom = back->floorheight + side->rowoffset;
textop = texbottom + texheight*(side->repeatcnt+1);
@ -553,7 +553,7 @@ P_GetMidtextureTopBottom
texbottom += side->rowoffset;
textop += side->rowoffset;
}
else if (!!(linedef->flags & ML_DONTPEGBOTTOM) ^ !!(linedef->flags & ML_MIDPEG))
else if (linedef->flags & ML_MIDPEG)
{
texbottom += side->rowoffset;
textop = texbottom + texheight*(side->repeatcnt+1);