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

pull/678/head
Peter Nelson 2 months ago committed by GitHub
parent 30e1a61c04
commit a9de766fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

Loading…
Cancel
Save