summaryrefslogtreecommitdiff
path: root/aircraft_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 /aircraft_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 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 5dddf907a..5da1823fb 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -734,7 +734,7 @@ static bool Aircraft_5(Vehicle *v)
if (u->cur_speed > 32) {
v->cur_speed = 0;
if (--u->cur_speed == 32) {
- SndPlayVehicleFx(0x16, v);
+ SndPlayVehicleFx(SND_18_HELICOPTER, v);
}
} else {
u->cur_speed = 32;
@@ -1098,7 +1098,7 @@ static void MaybeCrashAirplane(Vehicle *v)
0);
ModifyStationRatingAround(TILE_FROM_XY(v->x_pos, v->y_pos), v->owner, -160, 30);
- SndPlayVehicleFx(16, v);
+ SndPlayVehicleFx(SND_12_EXPLOSION, v);
}
// we've landed and just arrived at a terminal
@@ -1182,7 +1182,7 @@ static void AircraftLand(Vehicle *v)
static void AircraftLandAirplane(Vehicle *v)
{
AircraftLand(v);
- SndPlayVehicleFx(0x15, v);
+ SndPlayVehicleFx(SND_17_SKID_PLANE, v);
MaybeCrashAirplane(v);
}