- got rid of set_int_bvel

This commit is contained in:
Christoph Oelckers 2022-09-03 10:57:32 +02:00
parent 712d28ff40
commit 1dcb03e530
2 changed files with 2 additions and 7 deletions

View file

@ -180,11 +180,6 @@ public:
vel .Z = FixedToFloat(x);
}
void set_int_bvel(vec3_t x)
{
vel = { FixedToFloat(x.X), FixedToFloat(x.Y), FixedToFloat(x.Z) };
}
void add_int_bvel_x(int x)
{
vel .X += FixedToFloat(x);

View file

@ -6148,7 +6148,7 @@ void actCheckFlares()
pos.Y += mulscale30r(Sin(actor->xspr.goalAng + target->int_ang()), target->spr.clipdist * 2) * inttoworld;
pos.Z += actor->xspr.TargetPos.Z;
SetActor(actor, pos);
actor->set_int_bvel(target->int_vel());
actor->vel = target->vel;
}
else
{
@ -6214,7 +6214,7 @@ DBloodActor* actSpawnSprite(DBloodActor* source, int nStat)
DBloodActor* actor = InsertSprite(source->sector(), nStat);
actor->spr.pos = source->spr.pos;
actor->set_int_bvel(source->int_vel());
actor->vel = source->vel;
actor->spr.flags = 0;
actor->addX();
actor->hit.florhit.setNone();