mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 00:42:45 +01:00
(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.
This commit is contained in:
@@ -734,7 +734,7 @@ void EnginesMonthlyLoop()
|
||||
Engine *e;
|
||||
FOR_ALL_ENGINES(e) {
|
||||
/* Age the vehicle */
|
||||
if ((e->flags & ENGINE_AVAILABLE) && e->age != 0xFFFF) {
|
||||
if ((e->flags & ENGINE_AVAILABLE) && e->age != MAX_DAY) {
|
||||
e->age++;
|
||||
CalcEngineReliability(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user