Don't drain spheres while ebraking in guardbreak

This commit is contained in:
AJ Martinez 2023-05-19 18:56:14 -07:00
parent 9aa4a459ce
commit d725963f42

View file

@ -7817,7 +7817,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
player->spheredigestion = spheredigestion;
}
if (K_PlayerEBrake(player) && (player->ebrakefor%6 == 0))
if (K_PlayerGuard(player) && (player->ebrakefor%6 == 0))
player->spheres--;
}
else
@ -10588,7 +10588,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
K_MatchGenericExtraFlags(whip, player->mo);
whip->fuse = 12; // Changing instawhip animation duration? Look here
player->flashing = max(player->flashing, 12);
player->mo->momz += FRACUNIT;
player->mo->momz += 4*mapobjectscale;
}
}