[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 >
I see. Nevermind, then :) While we're on the topic of traderoutes, I'm
thinking their effect needs to be reduced a bit, although figuring out
how much would require some testing.
On 6/22/06, Jason Dorje Short <jdorje@xxxxxxxxx> wrote:
>
> <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
>
>
>
|
|