summaryrefslogtreecommitdiff
path: root/src/sound/null_s.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2020-12-08 10:24:59 +0100
committerGitHub <noreply@github.com>2020-12-08 10:24:59 +0100
commit2864d019f05b8c8bb3159f2c8913ed834e487698 (patch)
tree5211f714197ff1f8a3d424ea252f5ef672a00625 /src/sound/null_s.h
parent6e689e2038f7e34cc66b04b64e46f76206c1804e (diff)
downloadopenttd-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/sound/null_s.h')
-rw-r--r--src/sound/null_s.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound/null_s.h b/src/sound/null_s.h
index c01eae32a..9bc660b92 100644
--- a/src/sound/null_s.h
+++ b/src/sound/null_s.h
@@ -19,6 +19,7 @@ public:
void Stop() override { }
const char *GetName() const override { return "null"; }
+ bool HasOutput() const override { return false; }
};
/** Factory for the null sound driver. */