Fix issue where capsule immediately re-triggers if player gains rings during destruct

This commit is contained in:
mazmazz 2018-08-15 13:49:03 -04:00
parent 2e8c4b5545
commit ae0b7c9be8

View file

@ -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;