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]
To: cwarren89@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#17968) caravan formula
From: "Jason Dorje Short" <jdorje@xxxxxxxxx>
Date: Thu, 22 Jun 2006 19:00:54 -0700
Reply-to: bugs@xxxxxxxxxxx

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