mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 02:59:10 +00:00
Codechange: rename sound ids to make more sense. (#8701)
This commit is contained in:
@@ -2042,11 +2042,11 @@ bool Train::FindClosestDepot(TileIndex *location, DestinationID *destination, bo
|
||||
void Train::PlayLeaveStationSound() const
|
||||
{
|
||||
static const SoundFx sfx[] = {
|
||||
SND_04_TRAIN,
|
||||
SND_0A_TRAIN_HORN,
|
||||
SND_0A_TRAIN_HORN,
|
||||
SND_47_MAGLEV_2,
|
||||
SND_41_MAGLEV
|
||||
SND_04_DEPARTURE_STEAM,
|
||||
SND_0A_DEPARTURE_TRAIN,
|
||||
SND_0A_DEPARTURE_TRAIN,
|
||||
SND_47_DEPARTURE_MONORAIL,
|
||||
SND_41_DEPARTURE_MAGLEV
|
||||
};
|
||||
|
||||
if (PlayVehicleSound(this, VSE_START)) return;
|
||||
@@ -3069,7 +3069,7 @@ static bool CheckTrainCollision(Train *v)
|
||||
AddTileNewsItem(STR_NEWS_TRAIN_CRASH, NT_ACCIDENT, v->tile);
|
||||
|
||||
ModifyStationRatingAround(v->tile, v->owner, -160, 30);
|
||||
if (_settings_client.sound.disaster) SndPlayVehicleFx(SND_13_BIG_CRASH, v);
|
||||
if (_settings_client.sound.disaster) SndPlayVehicleFx(SND_13_TRAIN_COLLISION, v);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user