Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: directional system: more magic code cleanups
Home

[Freeciv-Dev] Re: directional system: more magic code cleanups

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: directional system: more magic code cleanups
From: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Date: Mon, 17 Sep 2001 23:42:26 -0400

At 12:25 PM 01/09/17 -0400, Jason Dorje Short wrote:
>Raimar Falke wrote:
>> On Mon, Sep 17, 2001 at 11:13:03AM +0100, Gregory Berkolaiko wrote:
>No, it must be positive (>0) rather than non-negative (>=0).  Traveling
>orthogonally to the destination is not OK.

It sort of depends on what your definition for this is. The current
definition is that the 3 directions that move you "further" away 
were not ok, but moving orthogonally, i.e. not getting any closer
was fine.

This freedom helps to navigate around some obstacles. And since there
is another function "find_shortest_direction", it is not unreasonable
to leave it this way.

>> > However Ross' patch might be more advanced than this.
>> 
>> No I don't think so ;)
>
>Ross's patch actually fixed the bug in straightest_direction, so it
>certainly was for that function.
>
>jason


Cheers,
RossW
=====



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