Somewhat fix jank air animation
This commit is contained in:
parent
7a7d9bcd97
commit
6c2efa96a5
1 changed files with 2 additions and 1 deletions
|
|
@ -9551,6 +9551,7 @@ static void K_KartSlipdash(player_t *player, boolean onground)
|
|||
INT32 K_GetDriftAngleOffset(player_t *player)
|
||||
{
|
||||
INT32 a = 0;
|
||||
boolean onground = P_IsObjectOnGround(player->mo);
|
||||
boolean compat = wadfiles[skins[player->skin].wadnum]->compatmode;
|
||||
if (player->aizdriftturn)
|
||||
{
|
||||
|
|
@ -9558,7 +9559,7 @@ INT32 K_GetDriftAngleOffset(player_t *player)
|
|||
if (compat)
|
||||
a /= 2; // don't turn too much in compatmode
|
||||
}
|
||||
else if (player->drift != 0)
|
||||
else if (player->drift != 0 && onground)
|
||||
{
|
||||
a = (ANGLE_45 / 5) * player->drift;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue