mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed sector iteration with Floor_Stop and Ceiling_Stop action specials
https://forum.zdoom.org/viewtopic.php?t=56582
This commit is contained in:
parent
3da02764d5
commit
d633e8afc1
2 changed files with 4 additions and 2 deletions
|
@ -593,8 +593,9 @@ bool EV_CeilingCrushStop (int tag, bool remove)
|
|||
|
||||
bool EV_StopCeiling(int tag, line_t *line)
|
||||
{
|
||||
int sec;
|
||||
FSectorTagIterator it(tag, line);
|
||||
while (int sec = it.Next())
|
||||
while ((sec = it.Next()) >= 0)
|
||||
{
|
||||
if (level.sectors[sec].ceilingdata)
|
||||
{
|
||||
|
|
|
@ -570,8 +570,9 @@ bool EV_FloorCrushStop (int tag, line_t *line)
|
|||
// same as above but stops any floor mover that was active on the given sector.
|
||||
bool EV_StopFloor(int tag, line_t *line)
|
||||
{
|
||||
int sec;
|
||||
FSectorTagIterator it(tag, line);
|
||||
while (int sec = it.Next())
|
||||
while ((sec = it.Next()) >= 0)
|
||||
{
|
||||
if (level.sectors[sec].floordata)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue