From c5f27f28b7a0bfa25c381840954acc8e354c6b0f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 2 Jan 2023 17:06:01 +1100 Subject: [PATCH] - SW: Tidy up the player sprite pos variable a little. --- source/games/sw/src/draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/draw.cpp b/source/games/sw/src/draw.cpp index 2be45656c..ce7624682 100644 --- a/source/games/sw/src/draw.cpp +++ b/source/games/sw/src/draw.cpp @@ -784,7 +784,7 @@ static void analyzesprites(tspriteArray& tsprites, const DVector3& viewpos, doub if (pp->Flags & (PF_VIEW_FROM_OUTSIDE)) 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)) {