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/newgrf_sound.cpp | |
parent | 345c3203d74b485f5f6569b87c06ad9af79422a2 (diff) | |
download | openttd-3ce8d2ce706fc14084a7d33a000d0b7a39fb19db.tar.xz |
(svn r24846) -Add: Advanced settings to disable certain sound effects.
Diffstat (limited to 'src/newgrf_sound.cpp')
-rw-r--r-- | src/newgrf_sound.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp index b82853ac6..fc345ded8 100644 --- a/src/newgrf_sound.cpp +++ b/src/newgrf_sound.cpp @@ -18,6 +18,7 @@ #include "sound_func.h" #include "fileio_func.h" #include "debug.h" +#include "settings_type.h" static SmallVector<SoundEntry, 8> _sounds; @@ -167,6 +168,8 @@ bool LoadNewGRFSound(SoundEntry *sound) */ bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event) { + if (!_settings_client.sound.vehicle) return true; + const GRFFile *file = v->GetGRF(); uint16 callback; |