Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] (PR#4770) client-side patrol routes aren't safe
Home

[Freeciv-Dev] (PR#4770) client-side patrol routes aren't safe

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4770) client-side patrol routes aren't safe
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 10 Aug 2003 19:39:53 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[jdorje - Wed Aug  6 15:44:05 2003]:

> Jason Short wrote:
> > The client just reverses the path to find the way from the end of
> the
> > path back to the beginning.  This isn't safe; e.g., for tririemes
> which
> > may have pauses in their paths.  Instead a new path should be
> generated
> > for the return.
> >
> > Question: should all of the waypoints be revisted in turn?  I don't
> > think so - all we should do is complete the cycle.  This allows more
> > flexible patrol routes, like patrolling in circles around an island.
> 
> Here's a patch that IMO makes it better (though not perfect; see the
> FIXME).

Here's an update to the patch.

jason

Attachment: patrol_circuit-2.diff
Description: patrol_circuit-2.diff


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