From a97f67edb61730e11c3bb428e7191ec29be5257d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 11 Apr 2016 23:12:35 +0200 Subject: [PATCH] - fixed: P_GetMidTexturePosition needs to divide by scale, not multiply, to get the proper offset. --- src/p_3dmidtex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_3dmidtex.cpp b/src/p_3dmidtex.cpp index 4bb9ec4ba..d04decfa0 100644 --- a/src/p_3dmidtex.cpp +++ b/src/p_3dmidtex.cpp @@ -236,7 +236,7 @@ bool P_GetMidTexturePosition(const line_t *line, int sideno, double *ptextop, do double textureheight = tex->GetHeight() / totalscale; if (totalscale != 1. && !tex->bWorldPanning) { - y_offset *= totalscale; + y_offset /= totalscale; } if(line->flags & ML_DONTPEGBOTTOM)