- added Floor_Stop and Ceiling_Stop action specials.

This commit is contained in:
Christoph Oelckers 2017-02-27 21:31:59 +01:00
commit d5d383ee93
5 changed files with 50 additions and 0 deletions

View file

@ -582,3 +582,18 @@ bool EV_CeilingCrushStop (int tag, bool remove)
return rtn;
}
bool EV_StopCeiling(int tag)
{
FSectorTagIterator it(tag);
while (int sec = it.Next())
{
if (level.sectors[sec].ceilingdata)
{
SN_StopSequence(&level.sectors[sec], CHAN_CEILING);
level.sectors[sec].ceilingdata->Destroy();
level.sectors[sec].ceilingdata = nullptr;
}
}
return true;
}