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

This commit is contained in:
Peter Nelson 2024-03-08 13:23:48 +00:00 committed by GitHub
parent 30e1a61c04
commit a9de766fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: