From e737551b6447eb20797016f0822baef9ac22dd50 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 3 Oct 2022 13:41:55 +0200 Subject: [PATCH] - moved setuo of opbob_pos to the correct place. --- source/games/sw/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index a171fe200..58c07f3ff 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -1774,7 +1774,6 @@ void DoPlayerRecoil(PLAYER* pp) void DoPlayerSpriteBob(PLAYER* pp, double player_height, double bobamt, short bob_speed) { pp->bob_ndx = (pp->bob_ndx + (synctics << bob_speed)) & 2047; - pp->opbob_amt = pp->pbob_amt; pp->pbob_amt = bobamt * BobVal(pp->bob_ndx); pp->actor->spr.pos.Z = pp->pos.Z + player_height + pp->pbob_amt; } @@ -6829,6 +6828,7 @@ void MoveSkipSavePos(void) pp->obob_z = pp->bob_z; pp->angle.backup(); pp->horizon.backup(); + pp->opbob_amt = pp->pbob_amt; } // save off stats for skip4