From 64bd68a2a6e4dbfe11aaa3dbea8e4e3243e02c7e Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 12 Nov 2012 18:10:21 +0000 Subject: [PATCH] (svn r24705) -Fix: Station rating might consider very old vehicles very young. --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy.cpp b/src/economy.cpp index 072b10795b..42d010759f 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