diff options
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; |