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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user