- 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:
parent
e505bfd7a3
commit
8535a973cf
9 changed files with 119 additions and 159 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue