Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: [Patch] next_step_on_line
Home

[Freeciv-Dev] Re: [Patch] next_step_on_line

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch] next_step_on_line
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 Oct 2001 08:42:54 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

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


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