Reset camera interpolation when switching viewpoints

Fixes a 1-frame jitter of the camera moving across the
level and turning around to match the new viewpoint.
This commit is contained in:
James R 2023-02-26 02:21:49 -08:00
parent 9578f5e05d
commit 5fe55f54a1

View file

@ -2050,6 +2050,10 @@ void G_ResetView(UINT8 viewnum, INT32 playernum, boolean onlyactive)
{
camerap = &camera[viewnum-1];
P_ResetCamera(&players[(*displayplayerp)], camerap);
// Why does it need to be done twice?
R_ResetViewInterpolation(viewnum);
R_ResetViewInterpolation(viewnum);
}
if (viewnum > splits)