mirror of https://github.com/OpenTTD/OpenTTD
(svn r19364) -Fix [FS#3668]: Implement custom sound effect for helicopter take-off.
parent
5881a80b6d
commit
58012c6e6b
|
@ -876,7 +876,11 @@ static bool AircraftController(Aircraft *v)
|
||||||
/* Make sure the rotors don't rotate too fast */
|
/* Make sure the rotors don't rotate too fast */
|
||||||
if (u->cur_speed > 32) {
|
if (u->cur_speed > 32) {
|
||||||
v->cur_speed = 0;
|
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 {
|
} else {
|
||||||
u->cur_speed = 32;
|
u->cur_speed = 32;
|
||||||
count = UpdateAircraftSpeed(v);
|
count = UpdateAircraftSpeed(v);
|
||||||
|
|
Loading…
Reference in New Issue