mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
a4c07a9ee3
commit
78b4cbdf6c
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ void DPolyDoor::Tick ()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PODOOR_SWING:
|
case PODOOR_SWING:
|
||||||
if (poly->RotatePolyobj (m_Speed))
|
if (m_Dist <= 0 || poly->RotatePolyobj (m_Speed))
|
||||||
{
|
{
|
||||||
absSpeed = abs (m_Speed);
|
absSpeed = abs (m_Speed);
|
||||||
if (m_Dist == -1)
|
if (m_Dist == -1)
|
||||||
|
|
Loading…
Reference in a new issue