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
commitd255041365aeb6effa6acd410c7265a6315b40e5 (patch)
treebfff352edf5c9340c1e64d8f0b44e5d356786105 /src/economy.cpp
parentf8ca8d20a2b75ec5af486a4049f096f162930149 (diff)
downloadopenttd-d255041365aeb6effa6acd410c7265a6315b40e5.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