- eliminated all of add_int_zvel.

This commit is contained in:
Christoph Oelckers 2022-09-13 20:40:49 +02:00
parent 65b6b5ba71
commit 1814274124
4 changed files with 3 additions and 8 deletions

View file

@ -122,11 +122,6 @@ public:
vel.Z = v * zinttoworld;
}
void add_int_zvel(int v)
{
vel.Z += v * zinttoworld;
}
// Note: Both Duke and SW use Q12.4 for this, Exhumed doesn't seem to treat horizontal velocity with a fixed factor.
int int_xvel() const
{

View file

@ -3507,7 +3507,7 @@ void move_d(DDukeActor *actor, int playernum, int xvel)
if ((a & jumptoplayer) == jumptoplayer)
{
if (actor->temp_data[0] < 16)
actor->add_int_zvel(- bcos(actor->temp_data[0] << 4, -5));
actor->vel.Z += BobVal(512 + (actor->temp_data[0] << 4)) * 2;
}
if (a & face_player_smart)

View file

@ -805,7 +805,7 @@ static void shootrpg(DDukeActor *actor, int p, int sx, int sy, int sz, int sa, i
{
spawned->spr.extra >>= 2;
spawned->add_int_ang(16 - (krand() & 31));
spawned->add_int_zvel( 256 - (krand() & 511));
spawned->vel.Z += 1 - krandf(2);
if (ps[p].hbomb_hold_delay)
{

View file

@ -716,7 +716,7 @@ static void shootrpg(DDukeActor* actor, int p, int sx, int sy, int sz, int sa, i
{
spawned->spr.extra >>= 2;
spawned->add_int_ang(16 - (krand() & 31));
spawned->add_int_zvel( 256 - (krand() & 511));
spawned->vel.Z += 1 - krandf(2);
if (ps[p].hbomb_hold_delay)
{