- Added a channel parameter to the sector overload of SN_StopSequence() so

it can be properly paired with calls to SN_StartSequence().


SVN r2043 (trunk)
This commit is contained in:
Randy Heit 2009-12-25 02:19:50 +00:00
commit 9eb5fdd276
8 changed files with 31 additions and 15 deletions

View file

@ -112,7 +112,7 @@ void DCeiling::Tick ()
m_Sector->SetTexture(sector_t::ceiling, m_Texture);
// fall through
default:
SN_StopSequence (m_Sector);
SN_StopSequence (m_Sector, CHAN_CEILING);
Destroy ();
break;
}
@ -145,7 +145,7 @@ void DCeiling::Tick ()
m_Sector->SetTexture(sector_t::ceiling, m_Texture);
// fall through
default:
SN_StopSequence (m_Sector);
SN_StopSequence (m_Sector, CHAN_CEILING);
Destroy ();
break;
}
@ -500,7 +500,7 @@ bool EV_CeilingCrushStop (int tag)
{
if (scan->m_Tag == tag && scan->m_Direction != 0)
{
SN_StopSequence (scan->m_Sector);
SN_StopSequence (scan->m_Sector, CHAN_CEILING);
scan->m_OldDirection = scan->m_Direction;
scan->m_Direction = 0; // in-stasis;
rtn = true;