Skip to content

Commit

Permalink
tr2/sound: fix samples playing after level finish
Browse files Browse the repository at this point in the history
Resolves #1770.
  • Loading branch information
rr- committed Nov 1, 2024
1 parent 5194dac commit b71acae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- fixed the camera being cut off after using the gong hammer in Ice Palace (#1580)
- fixed the audio not being in sync when Lara strikes the gong in Ice Palace (#1725)
- fixed door cheat not working with drawbridges (#1748)
- fixed certain audio samples continuing to play after finishing the level (#1770, regression from 0.2)
- fixed Lara's underwater hue being retained when re-entering a boat (#1596)
- fixed Lara reloading the harpoon gun after every shot in NG+ (#1575)
- fixed the dragon reviving itself after Lara removes the dagger in rare circumstances (#1572)
Expand Down
3 changes: 1 addition & 2 deletions src/tr2/game/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "game/text.h"
#include "global/funcs.h"
#include "global/vars.h"
#include "specific/s_audio_sample.h"

#include <libtrx/utils.h>

Expand Down Expand Up @@ -289,7 +288,7 @@ int32_t __cdecl Game_Loop(const bool demo_mode)
g_GameMode = GAMEMODE_NOT_IN_GAME;

Overlay_HideGameInfo();
S_Audio_Sample_OutCloseAllTracks();
Sound_StopAllSamples();
Music_Stop();

if (g_OptionMusicVolume) {
Expand Down

0 comments on commit b71acae

Please sign in to comment.