Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] Re: (PR#2370) Path finding
Home

[Freeciv-Dev] Re: (PR#2370) Path finding

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#2370) Path finding
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Mon, 3 Mar 2003 11:30:49 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, Mar 03, 2003 at 05:00:29AM -0800, Gregory Berkolaiko wrote:
> > > +  enum direction8 dir_to_next_pos;       /* Unsed only in struct_path */
> > 
> > It should be set to an invalid value otherwise.
> 
> Is
>       #ifdef DEBUG 
> ok with you?

This is ugly. And the write comes for free since this region is
already cached.

> > It looks like you forgot a pf_destroy_path function. I know why I
> > prefer static allocation when it is possible.
> 
> Thinking about it, we should then change the signature to
>       struct pf_path *pf_get_path(pf_map, x, y)
> and let pf_get_path do all the allocations.
> 
> Is it okay with you?

Yes.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "If at first you don't succeed... well so much for skydiving."




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