Skip to content

Commit

Permalink
music: fix the main music playing at the wrong volume
Browse files Browse the repository at this point in the history
Fixed quiet or mute main menu music if a level was exited while
underwater and the quiet, full but no ambient, quiet but no
ambient, or none underwater music behavior option was set.

Resolves #1540.
  • Loading branch information
walkawayy committed Sep 26, 2024
1 parent 6b7150a commit 614c18e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- fixed ability to crash the game with extreme FOV values (regression from 0.9)
- fixed double "Fly mode enabled" message when using `/fly` console command (regression from 4.0)
- fixed crash in the `/set` console command (regression from 4.4)
- fixed main menu music volume when exiting while underwater with certain music settings (#1540, regression from 4.4)

## [4.4](https://github.com/LostArtefacts/TR1X/compare/4.3-102-g458cd96...4.4) - 2024-09-20
- added `/exit` command (#1462)
Expand Down
1 change: 1 addition & 0 deletions src/game/level.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ bool Level_Initialise(int32_t level_num)
Overlay_BarSetHealthTimer(100);

Music_Stop();
Music_SetVolume(g_Config.music_volume);
Sound_ResetEffects();

Viewport_SetFOV(Viewport_GetUserFOV());
Expand Down

0 comments on commit 614c18e

Please sign in to comment.