Don't apply shallow water effects while in offroad

This commit is contained in:
James R 2021-12-05 20:13:20 -08:00
parent 2a74ee07f1
commit aebe6dd59c

View file

@ -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;
} }