Author: sveinung
Date: Wed Apr  1 23:46:32 2015
New Revision: 28685

URL: http://svn.gna.org/viewcvs/freeciv?rev=28685&view=rev
Log:
List the research_reqs in the generated help text of techs

See patch #5974

Modified:
    trunk/client/helpdata.c

Modified: trunk/client/helpdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/helpdata.c?rev=28685&r1=28684&r2=28685&view=diff
==============================================================================
--- trunk/client/helpdata.c     (original)
+++ trunk/client/helpdata.c     Wed Apr  1 23:46:32 2015
@@ -4218,6 +4218,14 @@
     CATLSTR(buf, bufsz, "\n");
   }
 
+  if (requirement_vector_size(&vap->research_reqs) > 0) {
+    CATLSTR(buf, bufsz, _("Requirements to research:\n"));
+    requirement_vector_iterate(&vap->research_reqs, preq) {
+      (void) insert_requirement(buf, bufsz, pplayer, preq);
+    } requirement_vector_iterate_end;
+    CATLSTR(buf, bufsz, "\n");
+  }
+
   insert_allows(&source, buf + strlen(buf), bufsz - strlen(buf));
 
   {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to