Remove redundant code in polydoor swing code.

'Perpetual' check does not make sense for poly doors.
This commit is contained in:
Edoardo Prezioso 2015-02-07 15:03:16 +01:00
parent 2d4299608c
commit 60b735dc60

View file

@ -679,10 +679,6 @@ void DPolyDoor::Tick ()
if (m_Dist <= 0 || poly->RotatePolyobj (m_Speed))
{
absSpeed = abs (m_Speed);
if (m_Dist == -1)
{ // perpetual polyobj
return;
}
m_Dist -= absSpeed;
if (m_Dist <= 0)
{