Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] Re: (PR#717) WISHLIST: Goto cursor shows movecost
Home

[Freeciv-Dev] Re: (PR#717) WISHLIST: Goto cursor shows movecost

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: sigra@xxxxxxx, stepan@xxxxxxxx, Brett.Albertson@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#717) WISHLIST: Goto cursor shows movecost
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Fri, 15 Aug 2003 04:59:19 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Thu, 14 Aug 2003, Jason Short wrote:

> A new version of this patch.
> 
> Changes:
> 
> - Drop hundreds and thousands' place; these are totally unnecessary.
> - Fix the sprite name for the tens' place.
> - Remove unnecessary #include.
> 
> Problems:
> 
> - Doesn't work with waypoints.  How can this be solved with PF?  We

int get_length(void)
{
  int i, time = 0;

  for(i = 0; i < goto_map.num_parts; i++) {
    time += goto_map.parts[goto_map.num_parts - 1].time;
  }

  return time;
}

should do the trick imo.

> can't just look at 'turns' but need to consider the actual number of
> moves along each path.  Perhaps the easiest thing is to concatenate the
> paths - although this is in theory slow (it's currently only done when
> we execute the goto), it's probably fine in practice.
> 
> jason
> 
> 




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