- Blood: Floatified remaining bits of ProcessInput().

This commit is contained in:
Mitchell Richters 2022-09-25 22:13:55 +10:00 committed by Christoph Oelckers
parent 781c2492a9
commit 32c784cd0f

View file

@ -1714,11 +1714,8 @@ void ProcessInput(PLAYER* pPlayer)
if (spawned) if (spawned)
{ {
spawned->spr.angle += DAngle180; spawned->spr.angle += DAngle180;
int x = bcos(pPlayer->actor->int_ang()); spawned->vel.XY() = pPlayer->actor->vel.XY() + (64. / 3.) * pPlayer->actor->spr.angle.ToVector();
int y = bsin(pPlayer->actor->int_ang()); spawned->vel.Z = pPlayer->actor->vel.Z;
spawned->set_int_bvel_x(pPlayer->actor->int_vel().X + MulScale(0x155555, x, 14));
spawned->set_int_bvel_y(pPlayer->actor->int_vel().Y + MulScale(0x155555, y, 14));
spawned->set_int_bvel_z(pPlayer->actor->int_vel().Z);
} }
pPlayer->hand = 0; pPlayer->hand = 0;
} }