- made MoveAttached, MoveCeiling and MoveFloor members of sector_t instead of DMover.

- call MoveFloor and MoveCeiling directly in FS's floorheight and ceilingheight functions and remove the dummy thinkers it had to use before.
This commit is contained in:
Christoph Oelckers 2016-04-08 14:18:46 +02:00
commit 8535a973cf
9 changed files with 119 additions and 159 deletions

View file

@ -136,7 +136,7 @@ void DCeiling::Tick ()
break;
case 1:
// UP
res = MoveCeiling (m_Speed, m_TopHeight, m_Direction);
res = m_Sector->MoveCeiling (m_Speed, m_TopHeight, m_Direction);
if (res == EMoveResult::pastdest)
{
@ -167,7 +167,7 @@ void DCeiling::Tick ()
case -1:
// DOWN
res = MoveCeiling (m_Speed, m_BottomHeight, m_Crush, m_Direction, m_CrushMode == ECrushMode::crushHexen);
res = m_Sector->MoveCeiling (m_Speed, m_BottomHeight, m_Crush, m_Direction, m_CrushMode == ECrushMode::crushHexen);
if (res == EMoveResult::pastdest)
{