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_gui.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_gui.c')
-rw-r--r-- | road_gui.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/road_gui.c b/road_gui.c index f28aff360..21be5360a 100644 --- a/road_gui.c +++ b/road_gui.c @@ -22,7 +22,7 @@ static byte _road_station_picker_orientation; static void CcPlaySound1D(bool success, uint tile, uint32 p1, uint32 p2) { - if (success) { SndPlayTileFx(0x1D, tile); } + if (success) SndPlayTileFx(SND_1F_SPLAT, tile); } static void PlaceRoad_NE(uint tile) @@ -46,7 +46,7 @@ static void PlaceRoad_Bridge(uint tile) static void CcBuildTunnel(bool success, uint tile, uint32 p1, uint32 p2) { if (success) { - SndPlayTileFx(0x1E, tile); + SndPlayTileFx(SND_20_SPLAT_2, tile); ResetObjectToPlace(); } else { SetRedErrorSquare(_build_tunnel_endtile); @@ -71,7 +71,7 @@ static void BuildRoadOutsideStation(uint tile, int direction) static void CcDepot(bool success, uint tile, uint32 p1, uint32 p2) { if (success) { - SndPlayTileFx(0x1D, tile); + SndPlayTileFx(SND_1F_SPLAT, tile); ResetObjectToPlace(); BuildRoadOutsideStation(tile, (int)p1); } @@ -159,7 +159,7 @@ static void BuildRoadClick_Remove(Window *w) if (w->disabled_state & (1<<12)) return; SetWindowDirty(w); - SndPlayFx(0x13); + SndPlayFx(SND_15_BEEP); _thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12)); MarkTileDirty(_thd.pos.x, _thd.pos.y); } @@ -362,7 +362,7 @@ static void BuildRoadDepotWndProc(Window *w, WindowEvent *e) { case 5: case 6: _road_depot_orientation = e->click.widget - 3; - SndPlayFx(0x13); + SndPlayFx(SND_15_BEEP); SetWindowDirty(w); break; } @@ -436,13 +436,13 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) { case 5: case 6: _road_station_picker_orientation = e->click.widget - 3; - SndPlayFx(0x13); + SndPlayFx(SND_15_BEEP); SetWindowDirty(w); break; case 7: case 8: _station_show_coverage = e->click.widget - 7; - SndPlayFx(0x13); + SndPlayFx(SND_15_BEEP); SetWindowDirty(w); break; } |