Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2006:
[Freeciv-Dev] Re: (PR#17968) caravan formula
Home

[Freeciv-Dev] Re: (PR#17968) caravan formula

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#17968) caravan formula
From: "Curtis Warren" <cwarren89@xxxxxxxxx>
Date: Thu, 22 Jun 2006 19:13:02 -0700
Reply-to: bugs@xxxxxxxxxxx

<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
>
>
>





[Prev in Thread] Current Thread [Next in Thread]