mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
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:
parent
9578f5e05d
commit
5fe55f54a1
1 changed files with 4 additions and 0 deletions
|
|
@ -2050,6 +2050,10 @@ void G_ResetView(UINT8 viewnum, INT32 playernum, boolean onlyactive)
|
||||||
{
|
{
|
||||||
camerap = &camera[viewnum-1];
|
camerap = &camera[viewnum-1];
|
||||||
P_ResetCamera(&players[(*displayplayerp)], camerap);
|
P_ResetCamera(&players[(*displayplayerp)], camerap);
|
||||||
|
|
||||||
|
// Why does it need to be done twice?
|
||||||
|
R_ResetViewInterpolation(viewnum);
|
||||||
|
R_ResetViewInterpolation(viewnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewnum > splits)
|
if (viewnum > splits)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue