- fixed: FInterpolator::DoInterpolations did not handle terminated interpolations properly.

This commit is contained in:
Christoph Oelckers 2016-01-23 17:00:24 +01:00
parent da6fe6cad6
commit 5c8fd4750f

View file

@ -261,9 +261,12 @@ void FInterpolator::DoInterpolations(fixed_t smoothratio)
didInterp = true;
for (DInterpolation *probe = Head; probe != NULL; probe = probe->Next)
DInterpolation *probe = Head;
while (probe != NULL)
{
DInterpolation *next = probe->Next;
probe->Interpolate(smoothratio);
probe = next;
}
}
@ -444,6 +447,8 @@ void DSectorPlaneInterpolation::UpdateInterpolation()
oldheight = sector->ceilingplane.d;
oldtexz = sector->GetPlaneTexZ(sector_t::ceiling);
}
if (oldtexz <-128*FRACUNIT)
__asm nop
}
//==========================================================================