mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Fix Capsule Entrance exec firing repeatedly
This commit is contained in:
parent
3f312ce114
commit
efdf684770
1 changed files with 2 additions and 2 deletions
|
@ -6009,7 +6009,7 @@ static void P_DoNiGHTSCapsule(player_t *player)
|
|||
}
|
||||
}
|
||||
|
||||
if (player->capsule->extravalue2 <= 0)
|
||||
if (player->capsule->extravalue2 <= 0 && player->capsule->health > 0)
|
||||
P_RunNightsCapsuleTouchExecutors(player->mo, true, player->spheres >= player->capsule->health); // run capsule entrance executors
|
||||
|
||||
// Time to blow it up!
|
||||
|
@ -6118,7 +6118,7 @@ static void P_DoNiGHTSCapsule(player_t *player)
|
|||
}
|
||||
}
|
||||
else
|
||||
player->capsule->extravalue1 = player->capsule->extravalue2 = -1;
|
||||
player->capsule->extravalue1 = -1;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue