mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-07 07:21:10 +00:00
- SW: fixed sector object setup with vator effect.
This used some weird initialization logic that was missed when first modifying this code.
This commit is contained in:
parent
324e35e776
commit
57aca0ed07
1 changed files with 3 additions and 1 deletions
|
@ -199,8 +199,10 @@ void so_addinterpolation(SECTOR_OBJECTp sop)
|
||||||
SWSectIterator it(int(*sectp - sector));
|
SWSectIterator it(int(*sectp - sector));
|
||||||
while (auto actor = it.Next())
|
while (auto actor = it.Next())
|
||||||
if (actor->s().statnum == STAT_VATOR && SP_TAG1(&actor->s()) == SECT_VATOR)
|
if (actor->s().statnum == STAT_VATOR && SP_TAG1(&actor->s()) == SECT_VATOR)
|
||||||
|
{
|
||||||
|
interp->hasvator = true;
|
||||||
break;
|
break;
|
||||||
interp->hasvator |= (i >= 0);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!interp->hasvator)
|
if (!interp->hasvator)
|
||||||
|
|
Loading…
Reference in a new issue