Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#3928) Convert client to use PF
Home

[Freeciv-Dev] Re: (PR#3928) Convert client to use PF

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#3928) Convert client to use PF
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Sat, 3 May 2003 08:45:42 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Sat, May 03, 2003 at 05:58:23AM -0700, Gregory Berkolaiko wrote:
> > > 3. Maybe we could do basic sanity checks before calling PF.  We know
> > > that a ship cannot go inland and such.  But this could be more
> > > trouble than it's worth.
> > 
> > No. Don't let us duplicate the rules all over the place.
> 
> Ok.  But I might put a quick check if the target tile is not TB_DONT_ENTER
> in the path_finding.c before we actually search for a path to this tile.  
> I believe it's not rule duplication, it's more like a clever use of the
> information supplied to us by the user.

I agree. You could test if there is a valid step into the target tile
(PF_IMPOSSIBLE_MC).

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Your mail could not be delivered to the following Address:
  VTCMC.VTLPR@xxxxxxxxxxxxx        ** Unassigned error message **"




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