mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Fix issue where capsule immediately re-triggers if player gains rings during destruct
This commit is contained in:
parent
2e8c4b5545
commit
ae0b7c9be8
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…
Reference in a new issue