(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:
rubidium
2007-06-07 14:38:45 +00:00
parent f8ca8d20a2
commit d255041365
7 changed files with 102 additions and 102 deletions

View File

@@ -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;
}
}