From 072ce4bb17dcb02e8e832f46e4fcadfd7c4be944 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 27 Aug 2009 13:47:03 +0000 Subject: (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 --- bin/ai/compat_0.7.nut | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/ai') 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); +} -- cgit v1.2.3-70-g09d2