- stop Duke screaming while falling if player puts the jet pack on.

No need to keep screaming if the player has saved themselves.
This commit is contained in:
Mitchell Richters 2020-08-11 13:48:16 +10:00 committed by Christoph Oelckers
parent 6a10a7f266
commit e083f78f8e

View file

@ -1562,6 +1562,11 @@ static void operateJetpack(int snum, ESyncBits sb_snum, int psectlotag, int fz,
p->pycount &= 2047;
p->pyoff = sintable[p->pycount] >> 7;
if (p->jetpack_on && S_CheckActorSoundPlaying(pi, DUKE_SCREAM))
{
S_StopSound(DUKE_SCREAM, pi);
}
if (p->jetpack_on < 11)
{
p->jetpack_on++;