From 60b735dc6028b75fce7e66394b0415eff55de6c7 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 7 Feb 2015 15:03:16 +0100 Subject: [PATCH] Remove redundant code in polydoor swing code. 'Perpetual' check does not make sense for poly doors. --- src/po_man.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/po_man.cpp b/src/po_man.cpp index bb9b3ca46a..4a3345d5bd 100644 --- a/src/po_man.cpp +++ b/src/po_man.cpp @@ -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) {