(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

@@ -969,12 +969,12 @@ static void FindSubsidyCargoRoute(FoundRoute *fr)
/* Randomize cargo type */
if (HASBIT(Random(), 0) && ind->produced_cargo[1] != CT_INVALID) {
cargo = ind->produced_cargo[1];
trans = i->pct_transported[1];
total = i->total_production[1];
trans = i->last_month_pct_transported[1];
total = i->last_month_production[1];
} else {
cargo = ind->produced_cargo[0];
trans = i->pct_transported[0];
total = i->total_production[0];
trans = i->last_month_pct_transported[0];
total = i->last_month_production[0];
}
/* Quit if no production in this industry