diff --git a/src/p_maputl.c b/src/p_maputl.c index 7eb4a7e19..e1ceeb0fe 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -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);