forked from 0ad/0ad
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:
parent
eebe7972df
commit
2ef6ec3f73
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user