Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6257) recodify map_pos<->index conversion to use n
Home

[Freeciv-Dev] Re: (PR#6257) recodify map_pos<->index conversion to use n

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6257) recodify map_pos<->index conversion to use native positions
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Tue, 23 Sep 2003 11:14:37 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, 23 Sep 2003, Jason Short wrote:

> 
> Index positions are ordered based off of native ones.  So the current 
> conversion operations (e.g., map_pos_to_index and index_to_map_pos) are 
> no good when we start using native positions.
> 
> Unfortunately going through native coordinates requires an intermediate 
> pair of variables, which is a problem with macros.  There are three 
> possible solutions:

How about introducing 2 new macros
        map_to_native_x
        map_to_native_y
?

G.




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