summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-23 21:08:42 +0000
committerfrosch <frosch@openttd.org>2012-12-23 21:08:42 +0000
commit345c3203d74b485f5f6569b87c06ad9af79422a2 (patch)
treeed4274819b03b7b8b15fba1cd7281d620543e547 /src/news_gui.cpp
parentbc84f30fc12d01230b9cb4d091fd03186fa83f03 (diff)
downloadopenttd-345c3203d74b485f5f6569b87c06ad9af79422a2.tar.xz
(svn r24845) -Add: News ticker sound setting to adv. settings window.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index e6bf957a4..2490fbfd8 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -39,7 +39,6 @@
#include "table/strings.h"
const NewsItem *_statusbar_news_item = NULL;
-bool _news_ticker_sound; ///< Make a ticker sound when a news item is published.
static uint MIN_NEWS_AMOUNT = 30; ///< prefered minimum amount of news messages
static uint _total_news = 0; ///< current number of news items
@@ -540,7 +539,7 @@ static void ShowNewspaper(const NewsItem *ni)
/** Show news item in the ticker */
static void ShowTicker(const NewsItem *ni)
{
- if (_news_ticker_sound) SndPlayFx(SND_16_MORSE);
+ if (_settings_client.sound.news_ticker) SndPlayFx(SND_16_MORSE);
_statusbar_news_item = ni;
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SHOW_TICKER);