- Fixed a very old issue with rotating polydoors.

This happened when the polydoor was open. If a mobj blocked the poly door, such that the door could not move from its open position, the poly door could rotate a little bit more than needed, making the door partially closing when the door managed to close later.
This commit is contained in:
Edoardo Prezioso 2015-01-26 02:20:54 +01:00
parent a4c07a9ee3
commit 78b4cbdf6c

View file

@ -676,7 +676,7 @@ void DPolyDoor::Tick ()
break;
case PODOOR_SWING:
if (poly->RotatePolyobj (m_Speed))
if (m_Dist <= 0 || poly->RotatePolyobj (m_Speed))
{
absSpeed = abs (m_Speed);
if (m_Dist == -1)