(svn r6611) - Newsounds:
- If the NewGRF sound effect chosen doesn't exist, then ignore it. - Play load/unload sound if provided.
This commit is contained in:
@@ -68,6 +68,6 @@ bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event)
|
||||
if (callback == CALLBACK_FAILED) return false;
|
||||
if (callback >= GetNumOriginalSounds()) callback += file->sound_offset - GetNumOriginalSounds();
|
||||
|
||||
SndPlayVehicleFx(callback, v);
|
||||
if (callback < GetNumSounds()) SndPlayVehicleFx(callback, v);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user