Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: find_the_shortest_path() cleanup
Home

[Freeciv-Dev] Re: find_the_shortest_path() cleanup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: find_the_shortest_path() cleanup
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Fri, 12 May 2000 14:01:20 -0400

At 2000/05/01 17:59 , Thue Janus Kristensen wrote:
>Some cleanup; handle airunits seperately to avoid severel problems. I
>would have done more, but some of that code is opaque.

Great!  The case is much nicer!

A few alterations.  I changed a couple of comments to be more clear (at
least to me).  Put GOTO_MOVE_STRAIGHTEST back into AIR_ case, because it
has a specific meaning which just letting the path planner run may not
replicate.  Added freelog() calls to SEA_ and AIR_ cases, like are in LAND_
case (these are missing from current code, but should be there).  Added a
default to the case, which logs and aborts.

I've run some quick tests, and it all seems to work.

Attachment: goto_works-1.diff
Description: Text document

jjm

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