diff options
author | Patric Stout <truebrain@openttd.org> | 2020-12-08 10:24:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 10:24:59 +0100 |
commit | 2864d019f05b8c8bb3159f2c8913ed834e487698 (patch) | |
tree | 5211f714197ff1f8a3d424ea252f5ef672a00625 /src/openttd.cpp | |
parent | 6e689e2038f7e34cc66b04b64e46f76206c1804e (diff) | |
download | openttd-2864d019f05b8c8bb3159f2c8913ed834e487698.tar.xz |
Fix: useless warning with -snull and no BaseSounds available (#8361)
If I explicitly tell the system I do not want sound, I still get
presented a nice message I do not have any BaseSounds available
on my system, and that I should download one to enjoy sound. Well,
let me tell you, with "-snull" that is really really not going to
help. So please, be quiet, and let me enjoy the game without
"boooooo" and "DING DING DING".
Thank you.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 337bcda4d..d20e88cd8 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1111,7 +1111,7 @@ void SwitchToMode(SwitchMode new_mode) case SM_MENU: // Switch to game intro menu LoadIntroGame(); - if (BaseSounds::ini_set.empty() && BaseSounds::GetUsedSet()->fallback) { + if (BaseSounds::ini_set.empty() && BaseSounds::GetUsedSet()->fallback && SoundDriver::GetInstance()->HasOutput()) { ShowErrorMessage(STR_WARNING_FALLBACK_SOUNDSET, INVALID_STRING_ID, WL_CRITICAL); BaseSounds::ini_set = BaseSounds::GetUsedSet()->name; } |