mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-12 23:16:03 +00:00
Wind/current linedef: Apply to front sector if tag = 0
This commit is contained in:
parent
9718674d3b
commit
64b67bcfe0
1 changed files with 7 additions and 2 deletions
|
@ -8988,8 +8988,13 @@ static void P_SpawnPushers(void)
|
||||||
fixed_t dx = FixedMul(FixedDiv(l->dx, length), hspeed);
|
fixed_t dx = FixedMul(FixedDiv(l->dx, length), hspeed);
|
||||||
fixed_t dy = FixedMul(FixedDiv(l->dy, length), hspeed);
|
fixed_t dy = FixedMul(FixedDiv(l->dy, length), hspeed);
|
||||||
|
|
||||||
|
if (l->args[0] == 0)
|
||||||
|
Add_Pusher(l->args[3], dx, dy, l->args[2] << FRACBITS, (INT32)(l->frontsector - sectors), -1, !(l->args[4] & TMPF_NONEXCLUSIVE), !!(l->args[4] & TMPF_SLIDE));
|
||||||
|
else
|
||||||
|
{
|
||||||
TAG_ITER_SECTORS(l->args[0], s)
|
TAG_ITER_SECTORS(l->args[0], s)
|
||||||
Add_Pusher(l->args[3], dx, dy, l->args[2] << FRACBITS, s, -1, !(l->args[4] & TMPF_NONEXCLUSIVE), !!(l->args[4] & TMPF_SLIDE));
|
Add_Pusher(l->args[3], dx, dy, l->args[2] << FRACBITS, s, -1, !(l->args[4] & TMPF_NONEXCLUSIVE), !!(l->args[4] & TMPF_SLIDE));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 547: // push/pull
|
case 547: // push/pull
|
||||||
|
|
Loading…
Reference in a new issue