Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: [PATCH] Renaming cities. (PR#567)
Home

[Freeciv-Dev] Re: [PATCH] Renaming cities. (PR#567)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Renaming cities. (PR#567)
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Sun, 24 Sep 2000 07:25:17 -0700 (PDT)

Gaute B Strokkenes <gs234@xxxxxxxxx> writes:

> And we'd better do something about game_find_city_by_name().  As
> long as there is no bijection between cities and their names, it's a
> disaster just waiting to happen.  A better name would be
> game_exists_city_by_name(), returning a boolean value.

Lo and behold: I just found a bug.  In the xaw client at least, it
seems that the window with the list of cities that you can select and
then center on uses game_find_city_by_name() to find the city struct
(and hence the coordinates) of the city you selected.  The result is
that if there are two cities with the same name, which is currently
allowed, only the first one will ever be found.

It's only cosmetic, but it's still a bug.  I'd fix it myself, but the
GUI code is out of my area of competence, sorry.

-- 
Big Gaute (not to be confused with LG)
Hello...  IRON CURTAIN?  Send over a SAUSAGE PIZZA!
 World War III?  No thanks!




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: [PATCH] Renaming cities. (PR#567), Gaute B Strokkenes <=