mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Loops: lag camera correctly
This commit is contained in:
parent
c87ffeba29
commit
0baad7b863
1 changed files with 9 additions and 1 deletions
10
src/p_user.c
10
src/p_user.c
|
|
@ -3289,7 +3289,15 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
dist -= FixedMul(11*dist/16, player->karthud[khud_boostcam]);
|
dist -= FixedMul(11*dist/16, player->karthud[khud_boostcam]);
|
||||||
}
|
}
|
||||||
|
|
||||||
speed = P_AproxDistance(P_AproxDistance(mo->momx, mo->momy), mo->momz / 16);
|
if (player->loop.radius)
|
||||||
|
{
|
||||||
|
speed = player->speed;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
speed = P_AproxDistance(P_AproxDistance(mo->momx, mo->momy), mo->momz / 16);
|
||||||
|
}
|
||||||
|
|
||||||
lag = FRACUNIT - ((FixedDiv(speed, speedthreshold) - FRACUNIT) * 2);
|
lag = FRACUNIT - ((FixedDiv(speed, speedthreshold) - FRACUNIT) * 2);
|
||||||
|
|
||||||
if (lag > FRACUNIT)
|
if (lag > FRACUNIT)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue