Changeset - r15872:2e71a9c0f51e
[Not reviewed]
master
0 2 0
yexo - 14 years ago 2010-08-19 15:44:17
yexo@openttd.org
(svn r20564) -Fix (r20562): provide compatibility for AIs using the 0.7/1.0 API and using AIList::ChangeItem
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
bin/ai/compat_0.7.nut
Show inline comments
 
@@ -314,6 +314,8 @@ AIIndustry._IsCargoAccepted <- AIIndustr
 
AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id)
 
{
 
	return AIIndustry._IsCargoAccepted(industry_id, cargo_id) != AIIndustry.CAS_NOT_ACCEPTED;
 
}
 

	
 
AIAbstractList <- AIList;
 

	
 
AIList.ChangeItem <- AIList.SetValue;
bin/ai/compat_1.0.nut
Show inline comments
 
@@ -65,6 +65,8 @@ AIIndustry._IsCargoAccepted <- AIIndustr
 
AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id)
 
{
 
	return AIIndustry._IsCargoAccepted(industry_id, cargo_id) != AIIndustry.CAS_NOT_ACCEPTED;
 
}
 

	
 
AIAbstractList <- AIList;
 

	
 
AIList.ChangeItem <- AIList.SetValue;
0 comments (0 inline, 0 general)