From 4dc68326d911f8e8937a37e1222577452adba9d2 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 25 Apr 2006 06:56:22 +0000 Subject: (svn r4570) - Fix: subsidy calculation was too high, broken in r3564 --- economy.c | 8 ++++---- 1 file 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; } } -- cgit v1.2.3-70-g09d2