[Freeciv-Dev] (PR#7095) No Capital, and can't build one..
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7095 >
> [jrincayc - Fri Jan 23 15:07:21 2004]:
>
> The wrong patch seems to be attached.
Oops. It seems that "overview" and "palace" are adjacent in an
alphabetical listing. Why does this always happen to me?
jason
Index: client/gui-gtk-2.0/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/citydlg.c,v
retrieving revision 1.69
diff -u -r1.69 citydlg.c
--- client/gui-gtk-2.0/citydlg.c 2004/01/07 23:16:17 1.69
+++ client/gui-gtk-2.0/citydlg.c 2004/01/22 23:19:45
@@ -2372,7 +2372,8 @@
{
struct city_dialog *pdialog = (struct city_dialog *) data;
GtkWidget *shl;
-
+ char buf[1024];
+
if (pdialog->pcity->did_buy || pdialog->pcity->did_sell ||
pdialog->pcity->owner != game.player_idx) {
return;
@@ -2384,12 +2385,18 @@
pdialog->sell_id = id;
+ my_snprintf(buf, sizeof(buf), _("Sell %s for %d gold?"),
+ get_impr_name_ex(pdialog->pcity, id), improvement_value(id));
+ if (id == B_PALACE) {
+ my_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "\n\n%s",
+ _("Selling your palace is usually a very bad idea!"));
+ }
+
shl = gtk_message_dialog_new(GTK_WINDOW(pdialog->shell),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
- _("Sell %s for %d gold?"),
- get_impr_name_ex(pdialog->pcity, id), improvement_value(id));
+ buf);
pdialog->sell_shell = shl;
gtk_window_set_title(GTK_WINDOW(shl), _("Sell It!"));
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., imbaczek@xxxxxxxxxxxxxx, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Mike Kaufman, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., imbaczek@xxxxxxxxxxxxxx, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Genevieve Gracian, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., imbaczek@xxxxxxxxxxxxxx, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., ue80@xxxxxxxxxxxxxxxxxxxxx, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., imbaczek@xxxxxxxxxxxxxx, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., ue80@xxxxxxxxxxxxxxxxxxxxx, 2004/01/22
- [Freeciv-Dev] (PR#7095) No Capital, and can't build one.., Jason Short, 2004/01/22
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Josh Cogliati, 2004/01/23
- [Freeciv-Dev] (PR#7095) No Capital, and can't build one..,
Jason Short <=
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Mike Kaufman, 2004/01/23
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Josh Cogliati, 2004/01/23
- [Freeciv-Dev] (PR#7095) No Capital, and can't build one.., Jason Short, 2004/01/23
- [Freeciv-Dev] (PR#7095) No Capital, and can't build one.., Jason Short, 2004/01/26
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Raimar Falke, 2004/01/26
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Josh Cogliati, 2004/01/26
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Remi Bonnet, 2004/01/26
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., ue80@xxxxxxxxxxxxxxxxxxxxx, 2004/01/26
- [Freeciv-Dev] Re: (PR#7095) No Capital, and can't build one.., Josh Cogliati, 2004/01/26
- [Freeciv-Dev] (PR#7095) No Capital, and can't build one.., Jason Short, 2004/01/26
|
|