Fix spinout retaining prev frame speedboost

This would happen because prevspeedboost would be used next frame for speedboost regardless of hit condition
This commit is contained in:
NepDisk 2025-07-01 12:58:52 -04:00
parent 8bbd7dca46
commit 04b65c70c4
2 changed files with 5 additions and 1 deletions

View file

@ -7647,6 +7647,11 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
if (!K_IsPlayerDamaged(player) && !player->wipeoutslow)
player->boostangle = player->mo->angle;
if (P_PlayerInPain(player))
{
player->prevspeedboost = 0;
}
K_GetKartBoostPower(player);
// Special effect objects!

View file

@ -2280,7 +2280,6 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
//player->flamedash = 0;
player->ringboost = 0;
player->glanceDir = 0;
K_ClearBoost(player);
player->pflags &= ~PF_GAINAX;
INT16 ringburst = 3;