summaryrefslogtreecommitdiff
path: root/bin/ai/compat_0.7.nut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ai/compat_0.7.nut')
-rw-r--r--bin/ai/compat_0.7.nut7
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);
+}