diff options
author | tron <tron@openttd.org> | 2004-12-04 09:26:39 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-04 09:26:39 +0000 |
commit | e56c3cddd8fcf8c852ee7f3c8dc49df9623a94d0 (patch) | |
tree | c64a0b16a280a9b4e7a310e747e96bca0821aa0e /road_cmd.c | |
parent | d036559e0ed75f6357e129f2d78808240519fc78 (diff) | |
download | openttd-e56c3cddd8fcf8c852ee7f3c8dc49df9623a94d0.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.c | 4 |
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); } |