Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map
Home

[Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Apr 2004 11:28:05 -0700
Reply-to: rt@xxxxxxxxxxx

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

Raimar Falke wrote:

>    BIT_STRING improvements[B_LAST+1];
> -  CITY_MAP city_map[CITY_MAP_SIZE*CITY_MAP_SIZE+1];
> +  CITY_MAP city_map[CITY_MAP_SIZE * CITY_MAP_SIZE];
> 
> You can do better here. Send the number of elements of the array. From
> this the client can decide what the citymap positions are. I.e. you do
> the old solution with an extra level of indirection.

I don't get it.  Isn't the number of elements of the array CITY_MAP_SIZE 
* CITY_MAP_SIZE, or very close?

jason




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