- SW: Tidy up the player sprite pos variable a little.

This commit is contained in:
Mitchell Richters 2023-01-02 17:06:01 +11:00
parent 577099284f
commit c5f27f28b7

View file

@ -784,7 +784,7 @@ static void analyzesprites(tspriteArray& tsprites, const DVector3& viewpos, doub
if (pp->Flags & (PF_VIEW_FROM_OUTSIDE)) if (pp->Flags & (PF_VIEW_FROM_OUTSIDE))
tsp->cstat |= (CSTAT_SPRITE_TRANSLUCENT); tsp->cstat |= (CSTAT_SPRITE_TRANSLUCENT);
auto pos = DVector3(pp->si.XY(), tsp->pos.Z + pp->si.Z + pp->getViewHeightDiff()); auto pos = pp->si.plusZ(tsp->pos.Z + pp->getViewHeightDiff());
if (pp->Flags & (PF_CLIMBING)) if (pp->Flags & (PF_CLIMBING))
{ {