mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 02:01:18 +00:00
Fix surface midtexture yscale
This commit is contained in:
parent
9d20bdef4f
commit
227634e9f9
1 changed files with 3 additions and 3 deletions
|
@ -799,8 +799,8 @@ void DoomLevelMesh::CreateSideSurfaces(FLevelLocals &doomMap, side_t *side)
|
||||||
|
|
||||||
auto gameTexture = TexMan.GetGameTexture(texture);
|
auto gameTexture = TexMan.GetGameTexture(texture);
|
||||||
|
|
||||||
float mid1Top = gameTexture->GetDisplayHeight();
|
float mid1Top = gameTexture->GetDisplayHeight() / side->textures[side_t::mid].yScale;
|
||||||
float mid2Top = gameTexture->GetDisplayHeight();
|
float mid2Top = gameTexture->GetDisplayHeight() / side->textures[side_t::mid].yScale;
|
||||||
float mid1Bottom = 0;
|
float mid1Bottom = 0;
|
||||||
float mid2Bottom = 0;
|
float mid2Bottom = 0;
|
||||||
|
|
||||||
|
@ -812,7 +812,7 @@ void DoomLevelMesh::CreateSideSurfaces(FLevelLocals &doomMap, side_t *side)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
yTextureOffset += side->sector->planes[sector_t::ceiling].TexZ - gameTexture->GetDisplayHeight();
|
yTextureOffset += side->sector->planes[sector_t::ceiling].TexZ - gameTexture->GetDisplayHeight() / side->textures[side_t::mid].yScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
verts[0].Z = min(max(yTextureOffset + mid1Bottom, v1Bottom), v1Top);
|
verts[0].Z = min(max(yTextureOffset + mid1Bottom, v1Bottom), v1Top);
|
||||||
|
|
Loading…
Reference in a new issue