mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- pos in DoBloodWorm
This commit is contained in:
parent
06be4eeb91
commit
0fcbe57111
1 changed files with 2 additions and 4 deletions
|
@ -10811,7 +10811,6 @@ int DoBloodWorm(DSWActor* actor)
|
|||
{
|
||||
short ang;
|
||||
int xvect,yvect;
|
||||
int bx,by;
|
||||
int amt;
|
||||
|
||||
actor->user.coll = move_ground_missile(actor, actor->user.change.X, actor->user.change.Y, actor->user.int_ceiling_dist(), actor->user.int_floor_dist(), CLIPMASK_MISSILE, MISSILEMOVETICS);
|
||||
|
@ -10862,8 +10861,7 @@ int DoBloodWorm(DSWActor* actor)
|
|||
xvect = bcos(ang);
|
||||
yvect = bsin(ang);
|
||||
|
||||
bx = actor->int_pos().X;
|
||||
by = actor->int_pos().Y;
|
||||
auto bpos = actor->spr.pos.XY();
|
||||
|
||||
amt = RANDOM_P2(2048) - 1024;
|
||||
actor->add_int_pos({ MulScale(amt,xvect, 15), MulScale(amt,yvect, 15), 0 });
|
||||
|
@ -10877,7 +10875,7 @@ int DoBloodWorm(DSWActor* actor)
|
|||
GlobalSkipZrange = false;
|
||||
}
|
||||
|
||||
actor->set_int_xy(bx, by);
|
||||
actor->spr.pos.XY() = bpos;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue