diff options
author | frosch <frosch@openttd.org> | 2012-12-23 21:09:09 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-23 21:09:09 +0000 |
commit | 3ce8d2ce706fc14084a7d33a000d0b7a39fb19db (patch) | |
tree | 6dde407ee402de6f5a5b75059a076222e80c7c0c /src/company_cmd.cpp | |
parent | 345c3203d74b485f5f6569b87c06ad9af79422a2 (diff) | |
download | openttd-3ce8d2ce706fc14084a7d33a000d0b7a39fb19db.tar.xz |
(svn r24846) -Add: Advanced settings to disable certain sound effects.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index e5c62ea2f..0abd8c6fb 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -725,9 +725,9 @@ void CompaniesYearlyLoop() ShowCompanyFinances(_local_company); c = Company::Get(_local_company); if (c->num_valid_stat_ent > 5 && c->old_economy[0].performance_history < c->old_economy[4].performance_history) { - SndPlayFx(SND_01_BAD_YEAR); + if (_settings_client.sound.new_year) SndPlayFx(SND_01_BAD_YEAR); } else { - SndPlayFx(SND_00_GOOD_YEAR); + if (_settings_client.sound.new_year) SndPlayFx(SND_00_GOOD_YEAR); } } } |