mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix chasecam desyncs during hitlag/death/FAULT
This commit is contained in:
parent
884f03c043
commit
3c69739e0a
1 changed files with 7 additions and 0 deletions
|
|
@ -1088,6 +1088,13 @@ static void G_DoAnglePrediction(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer, p
|
||||||
{
|
{
|
||||||
angle_t angleChange = 0;
|
angle_t angleChange = 0;
|
||||||
|
|
||||||
|
// Chasecam stops in these situations, so local cam should stop too.
|
||||||
|
// Otherwise it'll jerk when it resumes.
|
||||||
|
if (player->playerstate == PST_DEAD)
|
||||||
|
return;
|
||||||
|
if (player->mo != NULL && !P_MobjWasRemoved(player->mo) && player->mo->hitlag > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
while (realtics > 0)
|
while (realtics > 0)
|
||||||
{
|
{
|
||||||
localsteering[ssplayer - 1] = K_UpdateSteeringValue(localsteering[ssplayer - 1], cmd->turning);
|
localsteering[ssplayer - 1] = K_UpdateSteeringValue(localsteering[ssplayer - 1], cmd->turning);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue