Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2003:
[Freeciv-Dev] Re: [FreeCiv-Cvs] glip: Fixing some bugs in the PF, namely
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] glip: Fixing some bugs in the PF, namely

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Cc: Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] glip: Fixing some bugs in the PF, namely * ZoC shoul...
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Tue, 22 Apr 2003 21:30:52 +0200

On Sat, Apr 19, 2003 at 07:53:10PM +0100, Gregory Berkolaiko wrote:
> On Sat, 19 Apr 2003 freeciv@xxxxxxxxxxxxxxxxxxx wrote:
> 
> > This is an automated notification of a change to freeciv cvs, 
> > on Sat Apr 19 10:55:37 PDT 2003 = Sat Apr 19 17:55:37 2003 (GMT)
> > by Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
> > 
> > ---- Files affected:
> > 
> > freeciv/common/aicore path_finding.c
> > 
> > ---- Log message:
> >       Tag: HEAD
> > 
> > Fixing some bugs in the PF, namely
> > * ZoC should not prevent us from attacking an enemy
> > * we shouldn't attempt to go back further than the initial point of a path
> > * if a path to a dangerous tile is requested, return NULL instead of
> > crashing
> > * undefined paths should detected (instead segfaulting) when printing (RF)
> > * print direction when printing paths (RF)
> 
> The last change causes trouble.  I am sorry I didn't check it properly...
> It attempts to print the direction from the last tile on the path, which 
> is of course not defined (set to -1).  Which triggers an assert in 
> dir_get_name.  Actually, I would rather remove the assert and return "--" 
> instead of the direction name.  Let me know your opinions.

Yes remove the assert. But changing it to "--" may make it unobvious
if you pass in an invalid direction.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "We just typed make..."
    -- Stephen Lambrigh, Director of Server Product Marketing at Informix,
                         about porting their Database to Linux



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