(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.

This commit is contained in:
frosch
2010-07-10 08:54:57 +00:00
parent 12d8a957a0
commit 782ec1bbff
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}