(svn r4570) - Fix: subsidy calculation was too high, broken in r3564
authorpeter1138
Tue, 25 Apr 2006 06:56:22 +0000
changeset 3655 f91f341a613e
parent 3654 c09872510a61
child 3656 4aecbb417d50
(svn r4570) - Fix: subsidy calculation was too high, broken in r3564
economy.c
--- a/economy.c	Mon Apr 24 21:10:56 2006 +0000
+++ b/economy.c	Tue Apr 25 06:56:22 2006 +0000
@@ -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;
 		}
 	}