mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- got rid of int_ppos()
This commit is contained in:
parent
9103f4dbe8
commit
3df3676468
2 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue