(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