[Freeciv-Dev] Re: (PR#9406) goto failures
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9406 >
On Fri, Jul 16, 2004 at 09:01:07PM -0400, Jason Dorje Short wrote:
> Christian Knoke wrote:
> >Number 2.
> >
> >unit leaves the street and climbs hill instead.
>
> The problem is that moves are random and goto assumes the worst case.
> So leaving the road to go over the hill takes 2 moves, while staying on
> the street takes 2 moves in the worst case (but most likely only 1 move).
>
> The same thing often happens with rivers.
>
> This is not easy to fix so long as moves are random.
The results are partially very bad and make it dangerous to use GOTO.
Christian
--
Christian Knoke * * * http://cknoke.de
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
- [Freeciv-Dev] Re: (PR#9406) goto failures,
Christian Knoke <=
|
|