Warning fixes

This commit is contained in:
Antonio Martinez 2025-05-28 17:03:16 -04:00 committed by Ashnal
parent a1ed935aef
commit 341a018acc
2 changed files with 3 additions and 3 deletions

View file

@ -13923,9 +13923,9 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
if ((player->cmd.buttons & BT_VOTE) && ((player->itemtype && player->itemamount) || (player->rings > 0) || player->superring > 0 || player->pickuprings > 0 || player->itemRoulette.active))
{
boolean onground = P_IsObjectOnGround(player->mo);
boolean grounded = P_IsObjectOnGround(player->mo);
onground && player->tumbleBounces == 0 ? player->bailcharge += 2 : player->bailcharge++; // charge twice as fast on the ground
if (P_PlayerInPain(player) && player->bailcharge == 1 || onground && P_PlayerInPain(player) && player->bailcharge == 2) // this is brittle ..
if ((P_PlayerInPain(player) && player->bailcharge == 1) || (grounded && P_PlayerInPain(player) && player->bailcharge == 2)) // this is brittle ..
{
mobj_t *bail = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z + player->mo->height/2, MT_BAILCHARGE);
P_SetTarget(&bail->target, player->mo);

View file

@ -30,7 +30,7 @@ void Obj_BailThink (mobj_t *aura)
else
{
mobj_t *mo = aura->target;
player_t *player = mo->player;
ATTRUNUSED player_t *player = mo->player;
// Follow player
aura->flags &= ~(MF_NOCLIPTHING);