diff src/engine.cpp @ 15457:a4ca05c4772a draft

(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.
author frosch <frosch@openttd.org>
date Sat, 10 Jul 2010 08:54:57 +0000
parents e72aea2333da
children fbbbb2791756
line wrap: on
line diff
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -734,7 +734,7 @@
 		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);
 			}