(svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month).
This commit is contained in:
@@ -672,8 +672,8 @@ static bool AiCheckIfRouteIsGood(Player *p, FoundRoute *fr, byte bitmask)
|
||||
const Industry* i = (const Industry*)fr->from;
|
||||
const IndustrySpec *indsp = GetIndustrySpec(i->type);
|
||||
|
||||
if (i->pct_transported[fr->cargo != indsp->produced_cargo[0]] > 0x99 ||
|
||||
i->total_production[fr->cargo != indsp->produced_cargo[0]] == 0) {
|
||||
if (i->last_month_pct_transported[fr->cargo != indsp->produced_cargo[0]] > 0x99 ||
|
||||
i->last_month_production[fr->cargo != indsp->produced_cargo[0]] == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user