mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
Merge branch 'master' into Glew_Version_For_Real
This commit is contained in:
commit
183d0ba82a
2 changed files with 5 additions and 5 deletions
|
@ -451,12 +451,12 @@ void DSectorPlaneInterpolation::Restore()
|
|||
if (!ceiling)
|
||||
{
|
||||
sector->floorplane.d = bakheight;
|
||||
sector->SetPlaneTexZ(sector_t::floor, baktexz);
|
||||
sector->SetPlaneTexZ(sector_t::floor, baktexz, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
sector->ceilingplane.d = bakheight;
|
||||
sector->SetPlaneTexZ(sector_t::ceiling, baktexz);
|
||||
sector->SetPlaneTexZ(sector_t::ceiling, baktexz, true);
|
||||
}
|
||||
P_RecalculateAttached3DFloors(sector);
|
||||
}
|
||||
|
@ -487,7 +487,7 @@ void DSectorPlaneInterpolation::Interpolate(fixed_t smoothratio)
|
|||
baktexz = sector->GetPlaneTexZ(pos);
|
||||
|
||||
*pheight = oldheight + FixedMul(bakheight - oldheight, smoothratio);
|
||||
sector->SetPlaneTexZ(pos, oldtexz + FixedMul(baktexz - oldtexz, smoothratio));
|
||||
sector->SetPlaneTexZ(pos, oldtexz + FixedMul(baktexz - oldtexz, smoothratio), true);
|
||||
P_RecalculateAttached3DFloors(sector);
|
||||
}
|
||||
|
||||
|
|
|
@ -649,10 +649,10 @@ struct sector_t
|
|||
for (unsigned i = 0; i < e->XFloor.attached.Size(); i++) e->XFloor.attached[i]->SetVerticesDirty();
|
||||
}
|
||||
|
||||
void SetPlaneTexZ(int pos, fixed_t val)
|
||||
void SetPlaneTexZ(int pos, fixed_t val, bool dirtify = false) // This mainly gets used by init code. The only place where it must set the vertex to dirty is the interpolation code.
|
||||
{
|
||||
planes[pos].TexZ = val;
|
||||
SetAllVerticesDirty();
|
||||
if (dirtify) SetAllVerticesDirty();
|
||||
}
|
||||
|
||||
void ChangePlaneTexZ(int pos, fixed_t val)
|
||||
|
|
Loading…
Reference in a new issue