diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 519b56de6..ec7c6f578 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -423,7 +423,7 @@ void hud_input(int plnum) { p->inven_icon = 4; - S_StopSound(-1, pact, CHAN_VOICE); // this will stop the falling scream + S_StopSound(DUKE_SCREAM, pact); // this will stop the falling scream S_PlayActorSound(DUKE_JETPACK_ON, pact); FTA(QUOTE_JETPACK_ON, p); } diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index 9dcd6e3e7..7314bd424 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -1681,11 +1681,6 @@ static void operateJetpack(int snum, ESyncBits actions, int psectlotag, double f p->pycount &= 2047; p->pyoff = BobVal(p->pycount); - if (p->jetpack_on && S_CheckActorSoundPlaying(pact, DUKE_SCREAM)) - { - S_StopSound(DUKE_SCREAM, pact); - } - if (p->jetpack_on < 11) { p->jetpack_on++; @@ -1837,7 +1832,7 @@ static void movement(int snum, ESyncBits actions, sectortype* psect, double floo else { p->falling_counter = 0; - S_StopSound(-1, pact, CHAN_VOICE); + S_StopSound(DUKE_SCREAM, pact); if (psectlotag != ST_1_ABOVE_WATER && psectlotag != ST_2_UNDERWATER && p->on_ground == 0 && p->vel.Z > 12) p->hard_landing = uint8_t(p->vel.Z / 4. );