From 58012c6e6bde1dc6d480d928de24773f75957938 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 7 Mar 2010 15:10:39 +0000 Subject: (svn r19364) -Fix [FS#3668]: Implement custom sound effect for helicopter take-off. --- src/aircraft_cmd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 395c6edcc..d53cdb900 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -876,7 +876,11 @@ static bool AircraftController(Aircraft *v) /* Make sure the rotors don't rotate too fast */ if (u->cur_speed > 32) { v->cur_speed = 0; - if (--u->cur_speed == 32) SndPlayVehicleFx(SND_18_HELICOPTER, v); + if (--u->cur_speed == 32) { + if (!PlayVehicleSound(v, VSE_START)) { + SndPlayVehicleFx(SND_18_HELICOPTER, v); + } + } } else { u->cur_speed = 32; count = UpdateAircraftSpeed(v); -- cgit v1.2.3-70-g09d2