summaryrefslogtreecommitdiff
path: root/vehicle.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 /vehicle.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 'vehicle.c')
-rw-r--r--vehicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 69dc9f8d8..9c46bb13b 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1106,7 +1106,7 @@ again:
if (*b == 0x81) {
if (v->z_pos > 180 || CHANCE16(1,96)) {
v->spritenum = 5;
- SndPlayVehicleFx(0x2F, v);
+ SndPlayVehicleFx(SND_2F_POP, v);
}
et = 0;
goto again;
@@ -1116,7 +1116,7 @@ again:
uint tile;
et++;
- SndPlayVehicleFx(0x31, v);
+ SndPlayVehicleFx(SND_31_EXTRACT, v);
tile = TILE_FROM_XY(v->x_pos, v->y_pos);
if (IS_TILETYPE(tile, MP_INDUSTRY) &&