Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: [PATCH] Formatting cleanup.
Home

[Freeciv-Dev] Re: [PATCH] Formatting cleanup.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: jdorje@xxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Formatting cleanup.
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Fri, 05 Oct 2001 22:47:10 +0100

On Fri, 5 Oct 2001, hawk@xxxxxxxxxxxxxxxxxxxxxxx wrote:
> On Fri, Oct 05, 2001 at 10:19:04PM +0100, Gaute B Strokkenes wrote:
>> On Thu, 04 Oct 2001, vze2zq63@xxxxxxxxxxx wrote:
>> 
>> A good first step would be to convert as many places as possible to
>> use MAPSTEP() rather than manually twiddling coordinate pairs and
>> relying on normalize_map_pos() to clean up the mess.
> 
> I think we got everything. There are only some map_adjusts left:
> ./common/map.h:2
> ./server/mapgen.c:6
> ./server/maphand.c:1
> ./server/settlers.c:2
> ./server/unittools.c:1
> 
> If you know any more instances please tell.

There's lots in the client directories, but that might not be so
important.  I was just making a general point.

>> I'm not entirely sure what you mean by "converting it to a real
>> coordinate".  I assume you mean something like map_adjust_y() or
>> nearest_real_pos().  If you wish to take most abstract view
>> possible, this is more wrong
> 
>> than playing games with unreal coordinates
> 
> I agree that I think nearest_real_pos is a band-aid.

That's not what I'm saying.  I'm saying that it can not be generalised
to any and all topologies.  Whether we are interested in any where you
can not is another matter; I think the answer is no.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
The LOGARITHM of an ISOSCELES TRIANGLE is TUESDAY WELD!!


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