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: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Cc: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>, Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: package_dumb_city and palaces
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 8 Dec 2002 11:01:24 -0600

On Sun, Dec 08, 2002 at 05:33:40PM +0100, Raimar Falke wrote:
> 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.

ok, but does this not require an embassy? with the above code, you can tell
if a city has a capital simply by seeing it (the tile). (you don't need 
embassies or diplomats). Is this desired behavior?

-mike


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