Merge branch 'exclusivescrollfix' into 'next'

Fix 'exclusive' flag on plane scrollers being inverted

Closes #885

See merge request STJr/SRB2!1813
This commit is contained in:
sphere 2022-09-28 21:03:56 +00:00
commit ac7f983c8a

View file

@ -7552,11 +7552,11 @@ static void P_SpawnScrollers(void)
fixed_t dy = FixedMul(FixedDiv(l->dy, length), speed) >> SCROLL_SHIFT; fixed_t dy = FixedMul(FixedDiv(l->dy, length), speed) >> SCROLL_SHIFT;
if (l->args[0] == 0) if (l->args[0] == 0)
P_SpawnPlaneScroller(l, dx, dy, control, (INT32)(l->frontsector - sectors), accel, l->args[4] & TMST_NONEXCLUSIVE); P_SpawnPlaneScroller(l, dx, dy, control, (INT32)(l->frontsector - sectors), accel, !(l->args[4] & TMST_NONEXCLUSIVE));
else else
{ {
TAG_ITER_SECTORS(l->args[0], s) TAG_ITER_SECTORS(l->args[0], s)
P_SpawnPlaneScroller(l, dx, dy, control, s, accel, l->args[4] & TMST_NONEXCLUSIVE); P_SpawnPlaneScroller(l, dx, dy, control, s, accel, !(l->args[4] & TMST_NONEXCLUSIVE));
} }
break; break;
} }