mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- fixed incomplete interpolation floatification.
This commit is contained in:
parent
d54a2364b9
commit
1666418510
1 changed files with 8 additions and 8 deletions
|
@ -494,8 +494,8 @@ void DSectorPlaneInterpolation::Interpolate(double smoothratio)
|
||||||
pos = sector_t::ceiling;
|
pos = sector_t::ceiling;
|
||||||
}
|
}
|
||||||
|
|
||||||
bakheight = pplane->fixD();
|
bakheight = pplane->fD();
|
||||||
baktexz = sector->GetPlaneTexZ(pos);
|
baktexz = sector->GetPlaneTexZF(pos);
|
||||||
|
|
||||||
if (refcount == 0 && oldheight == bakheight)
|
if (refcount == 0 && oldheight == bakheight)
|
||||||
{
|
{
|
||||||
|
@ -628,8 +628,8 @@ void DSectorScrollInterpolation::Restore()
|
||||||
|
|
||||||
void DSectorScrollInterpolation::Interpolate(double smoothratio)
|
void DSectorScrollInterpolation::Interpolate(double smoothratio)
|
||||||
{
|
{
|
||||||
bakx = sector->GetXOffset(ceiling);
|
bakx = sector->GetXOffsetF(ceiling);
|
||||||
baky = sector->GetYOffset(ceiling, false);
|
baky = sector->GetYOffsetF(ceiling, false);
|
||||||
|
|
||||||
if (refcount == 0 && oldx == bakx && oldy == baky)
|
if (refcount == 0 && oldx == bakx && oldy == baky)
|
||||||
{
|
{
|
||||||
|
@ -719,8 +719,8 @@ void DWallScrollInterpolation::Restore()
|
||||||
|
|
||||||
void DWallScrollInterpolation::Interpolate(double smoothratio)
|
void DWallScrollInterpolation::Interpolate(double smoothratio)
|
||||||
{
|
{
|
||||||
bakx = side->GetTextureXOffset(part);
|
bakx = side->GetTextureXOffsetF(part);
|
||||||
baky = side->GetTextureYOffset(part);
|
baky = side->GetTextureYOffsetF(part);
|
||||||
|
|
||||||
if (refcount == 0 && oldx == bakx && oldy == baky)
|
if (refcount == 0 && oldx == bakx && oldy == baky)
|
||||||
{
|
{
|
||||||
|
@ -823,8 +823,8 @@ void DPolyobjInterpolation::Interpolate(double smoothratio)
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
for(unsigned int i = 0; i < poly->Vertices.Size(); i++)
|
for(unsigned int i = 0; i < poly->Vertices.Size(); i++)
|
||||||
{
|
{
|
||||||
bakverts[i*2 ] = poly->Vertices[i]->fixX();
|
bakverts[i*2 ] = poly->Vertices[i]->fX();
|
||||||
bakverts[i*2+1] = poly->Vertices[i]->fixY();
|
bakverts[i*2+1] = poly->Vertices[i]->fY();
|
||||||
|
|
||||||
if (bakverts[i * 2] != oldverts[i * 2] || bakverts[i * 2 + 1] != oldverts[i * 2 + 1])
|
if (bakverts[i * 2] != oldverts[i * 2] || bakverts[i * 2 + 1] != oldverts[i * 2 + 1])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue