diff options
author | frosch <frosch@openttd.org> | 2012-11-12 18:10:21 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-12 18:10:21 +0000 |
commit | 56e63338edf134eada1827a41532baa94092a057 (patch) | |
tree | 61f27a8d7f80851ae9784a2ff94bc5cc2ff15d86 /src | |
parent | a2980378ff7666cce6804fb392321a7314f4684d (diff) | |
download | openttd-56e63338edf134eada1827a41532baa94092a057.tar.xz |
(svn r24705) -Fix: Station rating might consider very old vehicles very young.
Diffstat (limited to 'src')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 072b10795..42d010759 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1471,7 +1471,7 @@ static void LoadUnloadVehicle(Vehicle *front, int *cargo_left) /* if last speed is 0, we treat that as if no vehicle has ever visited the station. */ ge->last_speed = min(t, 255); - ge->last_age = _cur_year - front->build_year; + ge->last_age = min(_cur_year - front->build_year, 255); ge->days_since_pickup = 0; /* If there's goods waiting at the station, and the vehicle |