summaryrefslogtreecommitdiff
path: root/bin/ai/compat_1.0.nut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ai/compat_1.0.nut')
-rw-r--r--bin/ai/compat_1.0.nut6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ai/compat_1.0.nut b/bin/ai/compat_1.0.nut
index c28f33531..267b85871 100644
--- a/bin/ai/compat_1.0.nut
+++ b/bin/ai/compat_1.0.nut
@@ -61,3 +61,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;
+}