mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +00:00
- fixed: P_GetMidTexturePosition needs to divide by scale, not multiply, to get the proper offset.
This commit is contained in:
parent
aec1c85c08
commit
a97f67edb6
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ bool P_GetMidTexturePosition(const line_t *line, int sideno, double *ptextop, do
|
||||||
double textureheight = tex->GetHeight() / totalscale;
|
double textureheight = tex->GetHeight() / totalscale;
|
||||||
if (totalscale != 1. && !tex->bWorldPanning)
|
if (totalscale != 1. && !tex->bWorldPanning)
|
||||||
{
|
{
|
||||||
y_offset *= totalscale;
|
y_offset /= totalscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(line->flags & ML_DONTPEGBOTTOM)
|
if(line->flags & ML_DONTPEGBOTTOM)
|
||||||
|
|
Loading…
Reference in a new issue