mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 22:21:05 +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 dy = FixedMul(FixedDiv(l->dy, length), hspeed);
|
||||
|
||||
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));
|
||||
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)
|
||||
Add_Pusher(l->args[3], dx, dy, l->args[2] << FRACBITS, s, -1, !(l->args[4] & TMPF_NONEXCLUSIVE), !!(l->args[4] & TMPF_SLIDE));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 547: // push/pull
|
||||
|
|
Loading…
Reference in a new issue