mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-10 10:02:41 +00:00
Fix camera going wild after reloading the gamestate
This commit is contained in:
parent
1e287d38f1
commit
546a3ff015
1 changed files with 8 additions and 0 deletions
|
|
@ -1607,6 +1607,14 @@ static void CL_ReloadReceivedSavegame(void)
|
||||||
neededtic = gametic;
|
neededtic = gametic;
|
||||||
maketic = neededtic;
|
maketic = neededtic;
|
||||||
|
|
||||||
|
ticcmd_oldangleturn[0] = players[consoleplayer].oldrelangleturn;
|
||||||
|
P_ForceLocalAngle(&players[consoleplayer], (angle_t)(players[consoleplayer].angleturn << 16));
|
||||||
|
if (splitscreen)
|
||||||
|
{
|
||||||
|
ticcmd_oldangleturn[1] = players[secondarydisplayplayer].oldrelangleturn;
|
||||||
|
P_ForceLocalAngle(&players[secondarydisplayplayer], (angle_t)(players[secondarydisplayplayer].angleturn << 16));
|
||||||
|
}
|
||||||
|
|
||||||
camera.subsector = R_PointInSubsector(camera.x, camera.y);
|
camera.subsector = R_PointInSubsector(camera.x, camera.y);
|
||||||
camera2.subsector = R_PointInSubsector(camera2.x, camera2.y);
|
camera2.subsector = R_PointInSubsector(camera2.x, camera2.y);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue