mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-26 21:20:57 +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))
|
if (m_Dist <= 0 || poly->RotatePolyobj (m_Speed))
|
||||||
{
|
{
|
||||||
absSpeed = abs (m_Speed);
|
absSpeed = abs (m_Speed);
|
||||||
if (m_Dist == -1)
|
|
||||||
{ // perpetual polyobj
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
m_Dist -= absSpeed;
|
m_Dist -= absSpeed;
|
||||||
if (m_Dist <= 0)
|
if (m_Dist <= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue