diff options
author | smatz <smatz@openttd.org> | 2009-08-27 13:47:03 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-27 13:47:03 +0000 |
commit | 072ce4bb17dcb02e8e832f46e4fcadfd7c4be944 (patch) | |
tree | a7db2661ae804f06e41ab9b237e7a9e2558be39b /src/ai/api/ai_station.cpp | |
parent | 100ae8efcc592ec44f0cc161e0045fb84b67c45e (diff) | |
download | openttd-072ce4bb17dcb02e8e832f46e4fcadfd7c4be944.tar.xz |
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
-Change [NoAI]: mark AITown::GetMaxProduction as deprecated, AITown::GetLastMonthProduction returns now the value GetMaxProduction did
Diffstat (limited to 'src/ai/api/ai_station.cpp')
-rw-r--r-- | src/ai/api/ai_station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_station.cpp b/src/ai/api/ai_station.cpp index 725b1471a..ce9dc62a8 100644 --- a/src/ai/api/ai_station.cpp +++ b/src/ai/api/ai_station.cpp @@ -48,7 +48,7 @@ if (!IsValidStation(station_id)) return -1; if (!AICargo::IsValidCargo(cargo_id)) return -1; - return ::Station::Get(station_id)->goods[cargo_id].rating * 101 >> 8; + return ::ToPercent8(::Station::Get(station_id)->goods[cargo_id].rating); } /* static */ int32 AIStation::GetCoverageRadius(AIStation::StationType station_type) |