(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
This commit is contained in:
smatz
2009-08-27 13:47:03 +00:00
parent 100ae8efcc
commit 072ce4bb17
6 changed files with 13 additions and 32 deletions

View File

@@ -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);
}