mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 12:13:16 +00:00
Merge branch 'fix-fault-freespin' into 'master'
Fix chasecam desyncs during hitlag/death/FAULT See merge request KartKrew/Kart!1002
This commit is contained in:
commit
833a51b384
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;
|
||||
|
||||
// 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)
|
||||
{
|
||||
localsteering[ssplayer - 1] = K_UpdateSteeringValue(localsteering[ssplayer - 1], cmd->turning);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue