1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #9603: Don't render audio when master volume is turned off (#9907)

This commit is contained in:
r0
2019-08-21 23:36:07 +02:00
committed by Michał Janiszewski
parent f56ec6776b
commit 9f6a944174
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
- Fix: [#9669] The tile inspector shortcut key does not work with debugging tools disabled.
- Fix: [#9717] Scroll bars do not render correctly when using OpenGL renderer.
- Fix: [#9729] Peeps do not take into account height difference when deciding to pathfind to a ride entrance. (original bug)
- Fix: [#9603] Don't render audio when master volume is turned off
- Improved: [#9466] Add the rain weather effect to the OpenGL renderer.
0.2.3 (2019-07-10)

View File

@@ -223,7 +223,8 @@ namespace OpenRCT2::Audio
{
auto channel = *it;
int32_t group = channel->GetGroup();
if (group != MIXER_GROUP_SOUND || gConfigSound.sound_enabled)
if ((group != MIXER_GROUP_SOUND || gConfigSound.sound_enabled) && gConfigSound.master_sound_enabled
&& gConfigSound.master_volume != 0)
{
MixChannel(channel, dst, length);
}