- got rid of int_ppos()

This commit is contained in:
Christoph Oelckers 2022-09-08 00:52:37 +02:00
parent 9103f4dbe8
commit 3df3676468
2 changed files with 1 additions and 6 deletions

View file

@ -572,11 +572,6 @@ struct PLAYER
DVector3 pos, opos, oldpos;
const vec3_t int_ppos() const
{
return { int(pos.X * worldtoint), int(pos.Y * worldtoint), int(pos.Z * zworldtoint) };
}
DSWActor* actor; // this may not be a TObjPtr!
TObjPtr<DSWActor*> lowActor, highActor;
TObjPtr<DSWActor*> remoteActor;

View file

@ -14646,7 +14646,7 @@ int InitUzi(PLAYER* pp)
if (RANDOM_P2(1024) < 400)
InitTracerUzi(pp);
nz = pp->int_ppos().Z + pp->bob_z * zworldtoint;
nz = (pp->pos.Z + pp->bob_z) * zworldtoint;
daz = nz;
daang = 32;
if (WeaponAutoAimHitscan(pp->actor, &daz, &daang, false) != nullptr)