summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-04 09:26:39 +0000
committertron <tron@openttd.org>2004-12-04 09:26:39 +0000
commite56c3cddd8fcf8c852ee7f3c8dc49df9623a94d0 (patch)
treec64a0b16a280a9b4e7a310e747e96bca0821aa0e /tunnelbridge_cmd.c
parentd036559e0ed75f6357e129f2d78808240519fc78 (diff)
downloadopenttd-e56c3cddd8fcf8c852ee7f3c8dc49df9623a94d0.tar.xz
(svn r925) Use sound enums
Also play the correct sound when a toyland road vehicle breaks down
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 9930a9f1d..5ff825ddb 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1407,7 +1407,7 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, uint tile, int x, int y)
if (v->u.rail.track != 0x40 && dir == vdir) {
if (v->subtype == 0 && fc == _tunnel_fractcoord_1[dir]) {
if (v->spritenum < 4)
- SndPlayVehicleFx(3, v);
+ SndPlayVehicleFx(SND_05_TRAIN_THROUGH_TUNNEL, v);
return 0;
}
if (fc == _tunnel_fractcoord_2[dir]) {