Rounds trader gain to avoid fractions with garrisoned traders in a merchant ship, patch by Markus, fixes #1954

This was SVN commit r13447.
This commit is contained in:
historic_bruno 2013-06-01 21:28:31 +00:00
parent eebe7972df
commit 2ef6ec3f73

View File

@ -56,7 +56,7 @@ Trader.prototype.CalculateGain = function(firstMarket, secondMarket, template)
}
}
return garrisonMultiplier * CalculateTraderGain(firstMarket, secondMarket, this.template);
return Math.round(garrisonMultiplier * CalculateTraderGain(firstMarket, secondMarket, this.template));
}
Trader.prototype.GetGain = function()