summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-03-24 14:42:11 +0000
committerpeter1138 <peter1138@openttd.org>2007-03-24 14:42:11 +0000
commitd53e16131def0611ea00dd59bcc8011e22b7d0d8 (patch)
tree8843307997b8244cd24911a92328c4e0a61f0b31
parent49ff7cb9389ca6a2611738fae6b338d7e8a83c3b (diff)
downloadopenttd-d53e16131def0611ea00dd59bcc8011e22b7d0d8.tar.xz
(svn r9427) -Codechange: remove redundant variable
-rw-r--r--src/economy.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 3620d4d2c..aaeced6f7 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1114,7 +1114,6 @@ static void Load_SUBS()
int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type)
{
- CargoID cargo = cargo_type;
const CargoSpec *cs = GetCargo(cargo_type);
byte f;
@@ -1139,7 +1138,7 @@ int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, C
}
if (f < 31) f = 31;
- return BIGMULSS(dist * f * num_pieces, _cargo_payment_rates[cargo], 21);
+ return BIGMULSS(dist * f * num_pieces, _cargo_payment_rates[cargo_type], 21);
}
static void DeliverGoodsToIndustry(TileIndex xy, CargoID cargo_type, int num_pieces)