<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18234 >

On 1/15/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
>
> On 7/2/06, Billy Naylor <[EMAIL PROTECTED]> wrote:
> >
> > The help dialogues don't show if units require a specific building,
> > the building help dialog shows what units it allows tho'.
>
>
>  Patch

 Text reprhrased, since it turns out that requirement building always
has to be in the same city - wonder in other city is not enough.


 - ML

diff -Nurd -X.diff_ignore freeciv/client/helpdata.c freeciv/client/helpdata.c
--- freeciv/client/helpdata.c	2006-08-18 10:52:09.000000000 +0300
+++ freeciv/client/helpdata.c	2007-01-16 07:46:23.000000000 +0200
@@ -772,6 +772,11 @@
 	    _("  * Gets used up in making an attack.\n"));
   }
 
+  if (utype->impr_requirement != B_LAST) {
+    sprintf(buf + strlen(buf),
+	    _("* Can only be built if there is %s in the city.\n"), 
+            get_improvement_name(utype->impr_requirement));
+  }
   if (utype->gov_requirement) {
     sprintf(buf + strlen(buf),
 	    _("* Can only be built with %s as government.\n"), 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to