diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-25 06:56:22 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-25 06:56:22 +0000 |
commit | f1cb7bac9a28453ea80c67f9ed529657bdddcfc1 (patch) | |
tree | 6bdf108804ad76fa3f794c2571344f1d1acb848e /economy.c | |
parent | ebf6797678b58aa558ab933fd3f5931fcf0406b9 (diff) | |
download | openttd-f1cb7bac9a28453ea80c67f9ed529657bdddcfc1.tar.xz |
(svn r4570) - Fix: subsidy calculation was too high, broken in r3564
Diffstat (limited to 'economy.c')
-rw-r--r-- | economy.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } } |