Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: (PR#2690) [PATCH] Show unit location in its descriptio
Home

[Freeciv-Dev] Re: (PR#2690) [PATCH] Show unit location in its descriptio

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: stepan@xxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2690) [PATCH] Show unit location in its description
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 7 Jan 2003 08:04:04 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, Jan 03, 2003 at 03:02:15AM -0800, Jason Short via RT wrote:
> Looping over every city to find the one closest to the unit is OK given
> the current users of unit_description.  But since the function is in

> common/ the server might be tempted to use it, and that would be bad.

The server already has his function:
server/unittools.c:get_location_str(). The question is now: it is
possible to merge/unify/whatever this function and
ai/aitools.c:dist_nearest_city and the new functions in
client/climisc.c?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "These download files are in Microsoft Word 6.0 format. After
  unzipping, these files can be viewed in any text editor, including
  all versions of Microsoft Word, WordPad, and Microsoft Word Viewer."
    -- http://www.microsoft.com/hwdev/pc99.htm




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