(svn r24846) -Add: Advanced settings to disable certain sound effects.

This commit is contained in:
frosch
2012-12-23 21:09:09 +00:00
parent 345c3203d7
commit 3ce8d2ce70
33 changed files with 185 additions and 100 deletions

View File

@@ -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;