1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Fix: Train running sounds should only be produced for engine parts.

Wagons were excluded, but articulated parts and second multihead parts should be excluded too.
This commit is contained in:
2024-03-08 00:40:52 +00:00
parent 25aeb1c5a5
commit 30abae0163

View File

@@ -1034,7 +1034,7 @@ void CallVehicleTicks()
/* Check vehicle type specifics */ /* Check vehicle type specifics */
switch (v->type) { switch (v->type) {
case VEH_TRAIN: case VEH_TRAIN:
if (Train::From(v)->IsWagon()) continue; if (!Train::From(v)->IsEngine()) continue;
break; break;
case VEH_ROAD: case VEH_ROAD: