1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 08:59:09 +00:00

Fix: Train running sounds should only be produced for engine parts. (#12229)

This commit is contained in:
2024-03-08 13:23:48 +00:00
committed by GitHub
parent 30e1a61c04
commit a9de766fa6

View File

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