diff options
author | frosch <frosch@openttd.org> | 2010-07-10 08:54:57 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-07-10 08:54:57 +0000 |
commit | 1055c2b0fd8feb8a4a3eb039c3170d7ee8160b46 (patch) | |
tree | d18c332b9157243bb55d427b56c4f15b2a80569e /src/engine.cpp | |
parent | d4da257ff9b11abcbaaea85743665d4188562856 (diff) | |
download | openttd-1055c2b0fd8feb8a4a3eb039c3170d7ee8160b46.tar.xz |
(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 0d9371f28..e2faf7a42 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -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); } |