mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Remove redundant code in polydoor swing code.
'Perpetual' check does not make sense for poly doors.
This commit is contained in:
parent
2d4299608c
commit
60b735dc60
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue