From 61086d7a8bf47e6138db9a7a99f870441bc7a633 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 23 Nov 2022 20:48:29 +1100 Subject: [PATCH] - SW: Don't bob the actual sprite's Z since we apply it as an offset in the draw code. --- source/games/sw/src/player.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index b96079e8e..a0881d754 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -1774,7 +1774,6 @@ void DoPlayerSpriteBob(PLAYER* pp, double player_height, double bobamt, short bo { pp->bob_ndx = (pp->bob_ndx + (synctics << bob_speed)) & 2047; pp->pbob_amt = bobamt * BobVal(pp->bob_ndx); - pp->actor->spr.pos.Z = pp->posZget() + player_height + pp->pbob_amt; } //---------------------------------------------------------------------------