summaryrefslogtreecommitdiff
path: root/src/effectvehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effectvehicle.cpp')
-rw-r--r--src/effectvehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effectvehicle.cpp b/src/effectvehicle.cpp
index 033d0bd2f..861b728a6 100644
--- a/src/effectvehicle.cpp
+++ b/src/effectvehicle.cpp
@@ -498,7 +498,7 @@ static bool BubbleTick(EffectVehicle *v)
if (b->y == 4 && b->x == 1) {
if (v->z_pos > 180 || Chance16I(1, 96, Random())) {
v->spritenum = 5;
- SndPlayVehicleFx(SND_2F_POP, v);
+ if (_settings_client.sound.ambient) SndPlayVehicleFx(SND_2F_POP, v);
}
anim_state = 0;
}
@@ -507,7 +507,7 @@ static bool BubbleTick(EffectVehicle *v)
TileIndex tile;
anim_state++;
- SndPlayVehicleFx(SND_31_EXTRACT, v);
+ if (_settings_client.sound.ambient) SndPlayVehicleFx(SND_31_EXTRACT, v);
tile = TileVirtXY(v->x_pos, v->y_pos);
if (IsTileType(tile, MP_INDUSTRY) && GetIndustryGfx(tile) == GFX_BUBBLE_CATCHER) AddAnimatedTile(tile);