mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- 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:
parent
6a10a7f266
commit
e083f78f8e
1 changed files with 5 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue