mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-05 13:16:16 +00:00
Fix issue where capsule immediately re-triggers if player gains rings during destruct
This commit is contained in:
parent
c072b15e4f
commit
8a348794a3
1 changed files with 4 additions and 0 deletions
|
|
@ -6046,6 +6046,10 @@ static void P_DoNiGHTSCapsule(player_t *player)
|
|||
if (player->capsule->health > sphereresult)
|
||||
player->capsule->health = sphereresult;
|
||||
|
||||
// did player somehow get more spheres? deduct that too
|
||||
if (player->spheres > 0)
|
||||
player->capsule->health -= player->spheres;
|
||||
|
||||
if (player->capsule->health <= 0)
|
||||
{
|
||||
player->capsule->flags &= ~MF_NOGRAVITY;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue