- 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:
Christoph Oelckers 2021-12-01 21:00:00 +01:00
parent 324e35e776
commit 57aca0ed07

View file

@ -199,8 +199,10 @@ void so_addinterpolation(SECTOR_OBJECTp sop)
SWSectIterator it(int(*sectp - sector));
while (auto actor = it.Next())
if (actor->s().statnum == STAT_VATOR && SP_TAG1(&actor->s()) == SECT_VATOR)
{
interp->hasvator = true;
break;
interp->hasvator |= (i >= 0);
}
}
if (!interp->hasvator)