[Freeciv-Dev] Re: (PR#17968) caravan formula
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=17968 >
Curtis Warren wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=17968 >
>
> Looking through the caravan code, I found the following to calculate
> the revenue for a caravan entering a marketplace:
>
>> } else {
>> /* enter marketplace */
>> revenue = (revenue + 2) / 3;
>> }
>
> The "+2" looks somewhat odd; is it supposed to be "*2" ?
+2 just causes the division to round up.
-jason
|
|