Complete.Org: Mailing Lists: Archives: freeciv-ai: December 2002:
[freeciv-ai] Re: settlers.c question
Home

[freeciv-ai] Re: settlers.c question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: settlers.c question
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Wed, 4 Dec 2002 19:42:25 +0100

On Wed, Dec 04, 2002 at 05:52:23PM +0000, Per I. Mathisen wrote:
> On Wed, 4 Dec 2002, Raimar Falke wrote:
> > Either I missed something or you missed this
> >
> > > -return TEST_BIT(map_get_tile(x, y)->assigned, pplayer->player_no);
> 
> Yes, I did. Here is the patch with this test included and the other crap
> removed.

Either I missed something or you missed that 

> -  square_iterate(x, y, CITY_MAP_SIZE-1, x1, y1) {

will cover a rectangle of ( 2*(CITY_MAP_SIZE-1)+1=9 ) 9*9 tiles and

> +  map_city_radius_iterate(x, y, x1, y1) {

only 21 tiles.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "We've all heard that a million monkeys banging on a million typewriters
  will eventually reproduce the entire works of Shakespeare.
  Now, thanks to the Internet, we know this is not true."


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