- fixed: 3Dmidtex opening checks didn't take per-sidedef scaling into account.
This commit is contained in:
parent
6423b2fece
commit
a3bdbff052
2 changed files with 5 additions and 3 deletions
|
|
@ -223,11 +223,12 @@ bool P_GetMidTexturePosition(const line_t *line, int sideno, fixed_t *ptextop, f
|
|||
FTexture * tex= TexMan(texnum);
|
||||
if (!tex) return false;
|
||||
|
||||
fixed_t totalscale = FixedMul(side->GetTextureYScale(side_t::mid), tex->yScale);
|
||||
fixed_t y_offset = side->GetTextureYOffset(side_t::mid);
|
||||
fixed_t textureheight = tex->GetScaledHeight() << FRACBITS;
|
||||
if (tex->yScale != FRACUNIT && !tex->bWorldPanning)
|
||||
fixed_t textureheight = tex->GetScaledHeight(totalscale) << FRACBITS;
|
||||
if (totalscale != FRACUNIT && !tex->bWorldPanning)
|
||||
{
|
||||
y_offset = FixedDiv(y_offset, tex->yScale);
|
||||
y_offset = FixedDiv(y_offset, totalscale);
|
||||
}
|
||||
|
||||
if(line->flags & ML_DONTPEGBOTTOM)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue