[Freeciv-Dev] Re: [Patch] next_step_on_line
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Oct 09, 2001 at 08:36:20PM -0400, Ross W. Wetmore wrote:
> I think you are both still making the foolish mistake of assuming
> straightest_direction() is only useful for doing straightest_line().
>
> The two really are different.
>
> And all the optimized flavours of straightest_line() should be handled
> by warmap computations with different move_cost or constraint
> parameters.
>
> The only real use for straightest_line() is as a quick, crude estimate,
> or in the case where you are not concerned about any move_cost effects.
>
> Please make sure you leave a (fixed) straightest_direction() in the
> code for those that need it.
I won't leave dead code in the tree. It will be re-included if there
is a user of straightest_line.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"#!/usr/bin/perl -w
if ( `date +%w` != 1 ) {
die "This script only works on Mondays." ;
}"
-- from chkars.pl by Cornelius Krasel in de.comp.os.linux.misc
|
|