Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] (PR#7095) No Capital, and can't build one..
Home

[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]
To: admerik@xxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#7095) No Capital, and can't build one..
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Jan 2004 09:56:07 -0800
Reply-to: rt@xxxxxxxxxxx

<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!"));

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