Mercurial > hg > openttd
changeset 3655:a00e26c1d507 draft
(svn r4570) - Fix: subsidy calculation was too high, broken in r3564
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Tue, 25 Apr 2006 06:56:22 +0000 |
parents | 37de78896e4b |
children | b7dd8817b9dd |
files | economy.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/economy.c +++ b/economy.c @@ -1240,10 +1240,10 @@ // 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; } }