mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-01 08:01:08 +00:00
- fixed multiplication/division mixup in TextureAdjustWidth.
- fixed: For top textures an incorrect ceiling height was passed to DoTexture.
This commit is contained in:
parent
bac3f1ee9b
commit
caf80e74c4
2 changed files with 3 additions and 3 deletions
|
@ -1503,7 +1503,7 @@ void GLWall::Process(seg_t *seg, sector_t * frontsector, sector_t * backsector)
|
|||
if (gltexture)
|
||||
{
|
||||
DoTexture(RENDERWALL_TOP, seg, (seg->linedef->flags & (ML_DONTPEGTOP)) == 0,
|
||||
frefz, realback->GetPlaneTexZF(sector_t::ceiling),
|
||||
crefz, realback->GetPlaneTexZF(sector_t::ceiling),
|
||||
fch1, fch2, bch1a, bch2a, 0);
|
||||
}
|
||||
else if (!(seg->sidedef->Flags & WALLF_POLYOBJ))
|
||||
|
@ -1516,7 +1516,7 @@ void GLWall::Process(seg_t *seg, sector_t * frontsector, sector_t * backsector)
|
|||
if (gltexture)
|
||||
{
|
||||
DoTexture(RENDERWALL_TOP, seg, (seg->linedef->flags & (ML_DONTPEGTOP)) == 0,
|
||||
frefz, realback->GetPlaneTexZF(sector_t::ceiling),
|
||||
crefz, realback->GetPlaneTexZF(sector_t::ceiling),
|
||||
fch1, fch2, bch1a, bch2a, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -372,7 +372,7 @@ float FTexCoordInfo::TextureAdjustWidth() const
|
|||
if (mWorldPanning)
|
||||
{
|
||||
if (mTempScale.X == 1.f) return mRenderWidth;
|
||||
else return mWidth * mTempScale.X;
|
||||
else return mWidth / mTempScale.X;
|
||||
}
|
||||
else return mWidth;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue