src/economy.cpp
branchnoai
changeset 9517 be1775555bbd
parent 9505 9711235f5693
child 9574 698395509d12
--- a/src/economy.cpp	Sat Mar 24 14:56:31 2007 +0000
+++ b/src/economy.cpp	Sat Mar 24 15:19:35 2007 +0000
@@ -1113,12 +1113,11 @@
 
 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;
 
 	/* zero the distance if it's the bank and very short transport. */
-	if (_opt.landscape == LT_NORMAL && cs->label == 'VALU' && dist < 10)
+	if (_opt.landscape == LT_TEMPERATE && cs->label == 'VALU' && dist < 10)
 		dist = 0;
 
 	f = 255;
@@ -1138,7 +1137,7 @@
 	}
 	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)