mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't apply shallow water effects while in offroad
This commit is contained in:
parent
2a74ee07f1
commit
aebe6dd59c
1 changed files with 4 additions and 2 deletions
|
|
@ -7676,7 +7676,8 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
||||||
{
|
{
|
||||||
turnfixed /= 2;
|
turnfixed /= 2;
|
||||||
}
|
}
|
||||||
else if (player->mo->eflags & MFE_TOUCHWATER)
|
else if ((player->mo->eflags & MFE_TOUCHWATER) &&
|
||||||
|
!player->offroad)
|
||||||
{
|
{
|
||||||
turnfixed = FixedMul(turnfixed, 3*FRACUNIT/2);
|
turnfixed = FixedMul(turnfixed, 3*FRACUNIT/2);
|
||||||
}
|
}
|
||||||
|
|
@ -8466,7 +8467,8 @@ void K_AdjustPlayerFriction(player_t *player)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Water gets ice physics too
|
// Water gets ice physics too
|
||||||
if (player->mo->eflags & MFE_TOUCHWATER)
|
if ((player->mo->eflags & MFE_TOUCHWATER) &&
|
||||||
|
!player->offroad)
|
||||||
{
|
{
|
||||||
player->mo->friction += 614;
|
player->mo->friction += 614;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue