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)) {