Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9799) PATCH: rewrited adjust_map()
Home

[Freeciv-Dev] Re: (PR#9799) PATCH: rewrited adjust_map()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mburda@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9799) PATCH: rewrited adjust_map()
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 31 Aug 2004 05:39:28 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9799 >

Marcelo Burda wrote:

> +  /* create the linearize function as a incremental occurrencies count */
> +  for(i =  -1; i++ < maxval;) {
> +      count += f[i];
> +      f[i] = (count * maxval) / (map.xsize * map.ysize) ;
> +     }

f[-1] is illegal.

jason




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