mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +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)
|
bool EV_StopCeiling(int tag, line_t *line)
|
||||||
{
|
{
|
||||||
|
int sec;
|
||||||
FSectorTagIterator it(tag, line);
|
FSectorTagIterator it(tag, line);
|
||||||
while (int sec = it.Next())
|
while ((sec = it.Next()) >= 0)
|
||||||
{
|
{
|
||||||
if (level.sectors[sec].ceilingdata)
|
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.
|
// same as above but stops any floor mover that was active on the given sector.
|
||||||
bool EV_StopFloor(int tag, line_t *line)
|
bool EV_StopFloor(int tag, line_t *line)
|
||||||
{
|
{
|
||||||
|
int sec;
|
||||||
FSectorTagIterator it(tag, line);
|
FSectorTagIterator it(tag, line);
|
||||||
while (int sec = it.Next())
|
while ((sec = it.Next()) >= 0)
|
||||||
{
|
{
|
||||||
if (level.sectors[sec].floordata)
|
if (level.sectors[sec].floordata)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue