1
0
Fork 0

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.
pull/12229/head
Peter Nelson 2024-03-08 00:40:52 +00:00
parent 25aeb1c5a5
commit 30abae0163
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

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: