1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-15 18:49:10 +00:00

(svn r10288) -Fix [FS#202]: also age engines that aren't front-engines (based on a patch by kaan)

This commit is contained in:
truelight
2007-06-22 22:42:18 +00:00
parent 117368a5a9
commit 34723257f0

View File

@@ -3410,6 +3410,9 @@ void OnNewDay_Train(Vehicle *v)
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
InvalidateWindowClasses(WC_TRAINS_LIST);
}
} else if (IsTrainEngine(v)) {
/* Also age engines that aren't front engines */
AgeVehicle(v);
}
}