Zip to the ground when airboosting

This commit is contained in:
AJ Martinez 2023-09-10 17:43:15 -07:00
parent 47e66096ca
commit ad9c36effd

View file

@ -9463,6 +9463,10 @@ static void K_KartDrift(player_t *player, boolean onground)
S_StartSound(player->mo, sfx_s23c);
//K_SpawnDashDustRelease(player);
// Airtime means we're not gaining speed. Get grounded!
if (!onground)
player->mo->momz -= player->speed/2;
if (player->driftcharge < 0)
{
// Stage 0: Grey sparks