mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r4570) - Fix: subsidy calculation was too high, broken in r3564
This commit is contained in:
parent
ebf6797678
commit
f1cb7bac9a
|
@ -1240,10 +1240,10 @@ static int32 DeliverGoods(int num_pieces, CargoID cargo_type, StationID source,
|
||||||
// Modify profit if a subsidy is in effect
|
// Modify profit if a subsidy is in effect
|
||||||
if (subsidised) {
|
if (subsidised) {
|
||||||
switch (_opt.diff.subsidy_multiplier) {
|
switch (_opt.diff.subsidy_multiplier) {
|
||||||
case 0: profit += profit >> 1;
|
case 0: profit += profit >> 1; break;
|
||||||
case 1: profit *= 2;
|
case 1: profit *= 2; break;
|
||||||
case 2: profit *= 3;
|
case 2: profit *= 3; break;
|
||||||
default: profit *= 4;
|
default: profit *= 4; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue