mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-17 17:11:19 +00:00
- Swapped the order of floor and ceiling moves in DElevator::Tick() so that
if an elevator contains an actor exactly the same height as it, it will not be blocked. SVN r1751 (trunk)
This commit is contained in:
parent
be9830f219
commit
9764532d8b
2 changed files with 15 additions and 12 deletions
|
@ -1,4 +1,7 @@
|
|||
August 4, 2009
|
||||
- Swapped the order of floor and ceiling moves in DElevator::Tick() so that
|
||||
if an elevator contains an actor exactly the same height as it, it will not
|
||||
be blocked.
|
||||
- Fixed: FWeaponSlot::PickWeapon() wrapped around improperly when the starting
|
||||
value for i was 0.
|
||||
|
||||
|
|
|
@ -260,18 +260,6 @@ void DElevator::Tick ()
|
|||
oldceiling = m_Sector->ceilingplane.d;
|
||||
|
||||
if (m_Direction < 0) // moving down
|
||||
{
|
||||
res = MoveCeiling (m_Speed, m_CeilingDestDist, m_Direction);
|
||||
if (res == ok || res == pastdest)
|
||||
{
|
||||
res = MoveFloor (m_Speed, m_FloorDestDist, m_Direction);
|
||||
if (res == crushed)
|
||||
{
|
||||
MoveCeiling (m_Speed, oldceiling, -m_Direction);
|
||||
}
|
||||
}
|
||||
}
|
||||
else // up
|
||||
{
|
||||
res = MoveFloor (m_Speed, m_FloorDestDist, m_Direction);
|
||||
if (res == ok || res == pastdest)
|
||||
|
@ -283,6 +271,18 @@ void DElevator::Tick ()
|
|||
}
|
||||
}
|
||||
}
|
||||
else // up
|
||||
{
|
||||
res = MoveCeiling (m_Speed, m_CeilingDestDist, m_Direction);
|
||||
if (res == ok || res == pastdest)
|
||||
{
|
||||
res = MoveFloor (m_Speed, m_FloorDestDist, m_Direction);
|
||||
if (res == crushed)
|
||||
{
|
||||
MoveCeiling (m_Speed, oldceiling, -m_Direction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (res == pastdest) // if destination height acheived
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue