Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: package_dumb_city and palaces
Home

[Freeciv-Dev] Re: package_dumb_city and palaces

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Cc: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: package_dumb_city and palaces
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Sun, 8 Dec 2002 17:33:40 +0100

On Sun, Dec 08, 2002 at 09:36:34AM -0600, Mike Kaufman wrote:
> 
> surely I'm not reading this correctly...
> 
> It's true that everytime you get a short_city packet, you are informed if
> the enemy city is the capital??? If so, why and where do you access this
> information in the client?
> 
> server/citytools.c:1394
> 
>   if (pcity && pcity->id == pdcity->id && city_got_building(pcity,
>                                                             B_PALACE))
>     packet->capital = TRUE;
>   else
>     packet->capital = FALSE;

From client/gui-gtk/inteldlg.c:intel_create_dialog()

  pcity = find_palace(p);
  my_snprintf(buf, sizeof(buf), _("Capital: %s"),
              (!pcity)?_("(Unknown)"):pcity->name);

This is the one which did first come to mind.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Many of my assistants were fans of Tolkien, who wrote 'Lord of the Rings'
  and a number of other children's stories for adults.  The first character
  alphabet that was programmed for my plotter was Elvish rather than Latin."
    -- from SAIs "life as a computer for a quarter of a century"



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