mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +00:00
Merge branch 'turn-dampen-cap' into 'next'
Cap on turn dampening See merge request KartKrew/Kart-Public!284
This commit is contained in:
commit
9d568673f1
1 changed files with 4 additions and 2 deletions
|
@ -5032,8 +5032,10 @@ static INT16 K_GetKartDriftValue(player_t *player, fixed_t countersteer)
|
|||
|
||||
INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
||||
{
|
||||
fixed_t p_maxspeed = FixedMul(K_GetKartSpeed(player, false), 3*FRACUNIT);
|
||||
fixed_t adjustangle = FixedDiv((p_maxspeed>>16) - (player->speed>>16), (p_maxspeed>>16) + player->kartweight);
|
||||
fixed_t p_topspeed = K_GetKartSpeed(player, false);
|
||||
fixed_t p_curspeed = min(player->speed, p_topspeed * 2);
|
||||
fixed_t p_maxspeed = p_topspeed * 3;
|
||||
fixed_t adjustangle = FixedDiv((p_maxspeed>>16) - (p_curspeed>>16), (p_maxspeed>>16) + player->kartweight);
|
||||
|
||||
if (player->spectator)
|
||||
return turnvalue;
|
||||
|
|
Loading…
Reference in a new issue