- Make the new scaled angle changes at frame rate opt-in behind new flag SPF_SCALEDNOLERP.

* This will still test whether the game needs to lerp and will force `SPF_INTERPOLATE` if needed.
This commit is contained in:
Mitchell Richters 2022-12-02 22:24:21 +11:00 committed by Christoph Oelckers
commit 6629944d39
6 changed files with 57 additions and 37 deletions

View file

@ -1259,6 +1259,7 @@ void P_PlayerThink (player_t *player)
// Don't interpolate the view for more than one tic
player->cheats &= ~CF_INTERPVIEW;
player->cheats &= ~CF_INTERPVIEWANGLES;
player->cheats &= ~CF_SCALEDNOLERP;
player->mo->FloatVar("prevBob") = player->bob;
IFVIRTUALPTRNAME(player->mo, NAME_PlayerPawn, PlayerThink)