mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Obj_GardenTopThrow: reset item and shield even if Top object is missing
This commit is contained in:
parent
a455822790
commit
c8cf6a4621
1 changed files with 10 additions and 10 deletions
|
|
@ -585,18 +585,18 @@ Obj_GardenTopThrow (player_t *player)
|
||||||
should fall off. */
|
should fall off. */
|
||||||
P_SetOrigin(player->mo, player->mo->x, player->mo->y,
|
P_SetOrigin(player->mo, player->mo->x, player->mo->y,
|
||||||
player->mo->z + height * P_MobjFlip(player->mo));
|
player->mo->z + height * P_MobjFlip(player->mo));
|
||||||
|
|
||||||
if (player->itemamount > 0)
|
|
||||||
player->itemamount--;
|
|
||||||
|
|
||||||
if (player->itemamount <= 0)
|
|
||||||
player->itemtype = KITEM_NONE;
|
|
||||||
|
|
||||||
player->curshield = KSHIELD_NONE;
|
|
||||||
|
|
||||||
player->mo->radius = K_DefaultPlayerRadius(player);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->itemamount > 0)
|
||||||
|
player->itemamount--;
|
||||||
|
|
||||||
|
if (player->itemamount <= 0)
|
||||||
|
player->itemtype = KITEM_NONE;
|
||||||
|
|
||||||
|
player->curshield = KSHIELD_NONE;
|
||||||
|
|
||||||
|
player->mo->radius = K_DefaultPlayerRadius(player);
|
||||||
|
|
||||||
return top;
|
return top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue