- allow tag == 0 for backside activation on a few more actions.

This commit is contained in:
Christoph Oelckers 2017-04-15 12:02:33 +02:00
commit 069e4e9b0b
4 changed files with 12 additions and 13 deletions

View file

@ -543,10 +543,10 @@ bool EV_DoFloor (DFloor::EFloor floortype, line_t *line, int tag,
//
//==========================================================================
bool EV_FloorCrushStop (int tag)
bool EV_FloorCrushStop (int tag, line_t *line)
{
int secnum;
FSectorTagIterator it(tag);
FSectorTagIterator it(tag, line);
while ((secnum = it.Next()) >= 0)
{
sector_t *sec = &level.sectors[secnum];
@ -563,9 +563,9 @@ bool EV_FloorCrushStop (int tag)
}
// same as above but stops any floor mover that was active on the given sector.
bool EV_StopFloor(int tag)
bool EV_StopFloor(int tag, line_t *line)
{
FSectorTagIterator it(tag);
FSectorTagIterator it(tag, line);
while (int sec = it.Next())
{
if (level.sectors[sec].floordata)