road_gui.c
changeset 541 e1cd34389f79
parent 514 7fb7b681f42d
child 543 e3b43338096b
--- a/road_gui.c	Sat Dec 04 07:41:37 2004 +0000
+++ b/road_gui.c	Sat Dec 04 09:26:39 2004 +0000
@@ -22,7 +22,7 @@
 
 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 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 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 @@
 	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 @@
 		case 5:
 		case 6:
 			_road_depot_orientation = e->click.widget - 3;
-			SndPlayFx(0x13);
+			SndPlayFx(SND_15_BEEP);
 			SetWindowDirty(w);
 			break;
 		}
@@ -436,13 +436,13 @@
 		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;
 		}