Top throw forces fastfall

This commit is contained in:
Antonio Martinez 2024-08-04 21:44:13 -07:00
parent 1b19cd6a38
commit 4fc8681e37

View file

@ -13273,6 +13273,10 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
P_InstaThrust(player->mo, angle, player->speed + (80 * mapobjectscale));
P_SetObjectMomZ(player->mo, player->mo->info->height / 8, true);
// Limit top spaceflight, whether accidental or on purpose, by forcing a fastfall
player->cmd.buttons |= BT_EBRAKEMASK;
player->pflags &= ~PF_NOFASTFALL;
if (top != NULL)
{
top->momx = player->mo->momx;