summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-25 06:56:22 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-25 06:56:22 +0000
commitf1cb7bac9a28453ea80c67f9ed529657bdddcfc1 (patch)
tree6bdf108804ad76fa3f794c2571344f1d1acb848e /economy.c
parentebf6797678b58aa558ab933fd3f5931fcf0406b9 (diff)
downloadopenttd-f1cb7bac9a28453ea80c67f9ed529657bdddcfc1.tar.xz
(svn r4570) - Fix: subsidy calculation was too high, broken in r3564
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/economy.c b/economy.c
index 1d540b870..b81113ade 100644
--- a/economy.c
+++ b/economy.c
@@ -1240,10 +1240,10 @@ static int32 DeliverGoods(int num_pieces, CargoID cargo_type, StationID source,
// Modify profit if a subsidy is in effect
if (subsidised) {
switch (_opt.diff.subsidy_multiplier) {
- case 0: profit += profit >> 1;
- case 1: profit *= 2;
- case 2: profit *= 3;
- default: profit *= 4;
+ case 0: profit += profit >> 1; break;
+ case 1: profit *= 2; break;
+ case 2: profit *= 3; break;
+ default: profit *= 4; break;
}
}