- 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

@ -99,7 +99,7 @@ void DPlat::Tick ()
switch (m_Status)
{
case up:
res = MoveFloor (m_Speed, m_High, m_Crush, 1, false);
res = m_Sector->MoveFloor (m_Speed, m_High, m_Crush, 1, false);
if (res == EMoveResult::crushed && (m_Crush == -1))
{
@ -144,7 +144,7 @@ void DPlat::Tick ()
break;
case down:
res = MoveFloor (m_Speed, m_Low, -1, -1, false);
res = m_Sector->MoveFloor (m_Speed, m_Low, -1, -1, false);
if (res == EMoveResult::pastdest)
{