mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-13 18:22:18 +00:00
Cap underwater steering tilting
This commit is contained in:
parent
ab77bceb88
commit
84170a59fa
1 changed files with 14 additions and 1 deletions
15
src/p_user.c
15
src/p_user.c
|
|
@ -1775,7 +1775,20 @@ static void P_3dMovement(player_t *player)
|
|||
|
||||
if (a)
|
||||
{
|
||||
adj = a / 4;
|
||||
const fixed_t maxadj = ANG10/4;
|
||||
|
||||
adj = a / 4;
|
||||
|
||||
if (adj > 0)
|
||||
{
|
||||
if (adj > maxadj)
|
||||
adj = maxadj;
|
||||
}
|
||||
else if (adj < 0)
|
||||
{
|
||||
if (adj < -(maxadj))
|
||||
adj = -(maxadj);
|
||||
}
|
||||
|
||||
if (abs(player->underwatertilt + adj) > abs(a))
|
||||
adj = (a - player->underwatertilt);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue