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.nut6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut
index 4c45e4fdb..0cb9857e6 100644
--- a/bin/ai/compat_0.7.nut
+++ b/bin/ai/compat_0.7.nut
@@ -310,3 +310,9 @@ function()
{
return !this.IsEnd();
}
+
+AIIndustry._IsCargoAccepted <- AIIndustry.IsCargoAccepted;
+AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id)
+{
+ return AIIndustry._IsCargoAccepted(industry_id, cargo_id) != AIIndustry.CAS_NOT_ACCEPTED;
+}