summaryrefslogtreecommitdiff
path: root/road_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
commit291d25a88bfcc8fa5e10b383ceaf03c446e032f5 (patch)
treec64a0b16a280a9b4e7a310e747e96bca0821aa0e /road_cmd.c
parentb88fc15e4744dd7bcba649ac399f1f07fbcab769 (diff)
downloadopenttd-291d25a88bfcc8fa5e10b383ceaf03c446e032f5.tar.xz
(svn r925) Use sound enums
Also play the correct sound when a toyland road vehicle breaks down
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 75426cb55..a269171be 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -973,7 +973,7 @@ static void TileLoop_Road(uint tile)
if (GetTileSlope(tile, NULL) == 0 && EnsureNoVehicle(tile) && CHANCE16(1,20)) {
_map2[tile] = ((_map2[tile]&7) <= 1) ? 6 : 7;
- SndPlayTileFx(0x1F,tile);
+ SndPlayTileFx(SND_21_JACKHAMMER, tile);
CreateEffectVehicleAbove(
GET_TILE_X(tile) * 16 + 7,
GET_TILE_Y(tile) * 16 + 7,
@@ -1086,7 +1086,7 @@ static uint32 VehicleEnter_Road(Vehicle *v, uint tile, int x, int y)
if ((_map5[tile] & 0xF0) == 0x10) {
if (v->type == VEH_Train && (_map5[tile] & 4) == 0) {
/* train crossing a road */
- SndPlayVehicleFx(12, v);
+ SndPlayVehicleFx(SND_0E_LEVEL_CROSSING, v);
_map5[tile] |= 4;
MarkTileDirtyByTile(tile);
}