From 61af682be9863f69b4135f7fb42990782d2a730a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 27 Aug 2013 23:53:14 +0200 Subject: [PATCH] - made some alterations to last commit after reviewing how the broken code managed to get into GZDoom. --- src/gl/scene/gl_walls.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/gl/scene/gl_walls.cpp b/src/gl/scene/gl_walls.cpp index 64d3d02d5..6c8b32766 100644 --- a/src/gl/scene/gl_walls.cpp +++ b/src/gl/scene/gl_walls.cpp @@ -760,21 +760,8 @@ void GLWall::DoTexture(int _type,seg_t * seg, int peg, type = (seg->linedef->special == Line_Mirror && _type == RENDERWALL_M1S && gl_mirrors) ? RENDERWALL_MIRROR : _type; - float f1 = FIXED2FLOAT(ceilingrefheight); - float f2 = FIXED2FLOAT(tci.RowOffset(seg->sidedef->GetTextureYOffset(texpos))); - float f3 = 0; - - if (peg) - { - int foo = (gltexture->TextureHeight(GLUSE_TEXTURE) << 17) / tci.mTempScaleY; - fixed_t of = (foo >> 1) + (foo & 1); - f3 = of - FIXED2FLOAT(lh - v_offset); - - float f3a = FIXED2FLOAT((peg ? (gltexture->TextureHeight(GLUSE_TEXTURE)<sidedef->GetTextureYOffset(texpos))); + if (peg) floatceilingref += tci.mRenderHeight - FIXED2FLOAT(lh + v_offset); if (!SetWallCoordinates(seg, &tci, floatceilingref, topleft, topright, bottomleft, bottomright, seg->sidedef->GetTextureXOffset(texpos))) return;