diff options
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index e16e1f4d7..c7c56a37f 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -28,6 +28,7 @@ #include "water_map.h" #include "yapf/yapf.h" #include "date.h" +#include "newgrf_sound.h" #include "table/bridge_land.h" @@ -1361,8 +1362,9 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, TileIndex tile, int x, int y if (v->u.rail.track != 0x40 && dir == vdir) { if (IsFrontEngine(v) && fc == _tunnel_fractcoord_1[dir]) { - if (v->spritenum < 4) + if (!PlayVehicleSound(v, VSE_TUNNEL) && v->spritenum < 4) { SndPlayVehicleFx(SND_05_TRAIN_THROUGH_TUNNEL, v); + } return 0; } if (fc == _tunnel_fractcoord_2[dir]) { |