1
0
Fork 0

(svn r5109) - Backport from trunk (r5097):

The trolly AI used information from the wrong industry when calculating the
  amount of to be transported goods
release/0.4
Darkvater 2006-06-04 22:03:58 +00:00
parent 590cd1d07b
commit 1be4771689
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ static void AiNew_State_LocateRoute(Player *p)
if (GetIndustry(p->ainew.temp)->produced_cargo[0] == GetIndustry(p->ainew.from_ic)->accepts_cargo[i]) {
// Found a compatbiel industry
found = true;
max_cargo = GetIndustry(p->ainew.temp)->total_production[0] - GetIndustry(p->ainew.from_ic)->total_transported[0];
max_cargo = GetIndustry(p->ainew.temp)->total_production[0] - GetIndustry(p->ainew.temp)->total_transported[0];
p->ainew.from_deliver = false;
p->ainew.to_deliver = true;
break;