mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix drift spark camera when you go to yellow sparks
This commit is contained in:
parent
01885c5166
commit
7d1c132ca2
1 changed files with 8 additions and 1 deletions
|
|
@ -7498,7 +7498,14 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
if (player->kartstuff[k_drift] != 0)
|
if (player->kartstuff[k_drift] != 0)
|
||||||
{
|
{
|
||||||
fixed_t panmax = (dist/5);
|
fixed_t panmax = (dist/5);
|
||||||
pan = FixedDiv(FixedMul(min((fixed_t)player->kartstuff[k_driftcharge], K_GetKartDriftSparkValue(player)), panmax), K_GetKartDriftSparkValue(player));
|
INT32 driftval = K_GetKartDriftSparkValue(player);
|
||||||
|
INT32 dc = player->kartstuff[k_driftcharge];
|
||||||
|
|
||||||
|
if (dc > driftval || dc < 0)
|
||||||
|
dc = driftval;
|
||||||
|
|
||||||
|
pan = FixedDiv(FixedMul((fixed_t)dc, panmax), driftval);
|
||||||
|
|
||||||
if (pan > panmax)
|
if (pan > panmax)
|
||||||
pan = panmax;
|
pan = panmax;
|
||||||
if (player->kartstuff[k_drift] < 0)
|
if (player->kartstuff[k_drift] < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue