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 /bin | |
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 'bin')
-rw-r--r-- | bin/ai/compat_0.7.nut | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut index 8020d57b2..377044326 100644 --- a/bin/ai/compat_0.7.nut +++ b/bin/ai/compat_0.7.nut @@ -69,3 +69,10 @@ AISubsidy.GetDestination <- function(subsidy_id) return AISubsidy.GetDestinationIndex(subsidy_id); } + +AITown.GetMaxProduction <- function(town_id, cargo_id) +{ + AILog.Warning("AITown::GetMaxProduction is deprecated and will be removed soon, please use AITown::GetLastMonthProduction instead."); + AILog.Warning("Also note that behaviour of AITown::GetLastMonthProduction has slightly changed."); + return AITown.GetLastMonthProduction(town_id, cargo_id); +} |