summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-07 14:38:45 +0000
committerrubidium <rubidium@openttd.org>2007-06-07 14:38:45 +0000
commit8a74b2ebe179500f1e95647cdf4a2e740ea1df23 (patch)
treebfff352edf5c9340c1e64d8f0b44e5d356786105 /src/economy.cpp
parentb73cd3c12d8dd7b44b4ed8e472f978c0b3510289 (diff)
downloadopenttd-8a74b2ebe179500f1e95647cdf4a2e740ea1df23.tar.xz
(svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month).
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index dbec59eca..b6966ead0 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -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