- SW: Don't bob the actual sprite's Z since we apply it as an offset in the draw code.

This commit is contained in:
Mitchell Richters 2022-11-23 20:48:29 +11:00 committed by Christoph Oelckers
parent e6044bc0fd
commit 61086d7a8b

View file

@ -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;
}
//---------------------------------------------------------------------------