Mercurial > hg > openttd
changeset 14776:b04796bdac8a draft
(svn r19364) -Fix [FS#3668]: Implement custom sound effect for helicopter take-off.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sun, 07 Mar 2010 15:10:39 +0000 |
parents | b1c726da0f07 |
children | a8eb10828cec |
files | src/aircraft_cmd.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -876,7 +876,11 @@ /* 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);