Author: sveinung
Date: Fri May 12 14:55:00 2017
New Revision: 35516

URL: http://svn.gna.org/viewcvs/freeciv?rev=35516&view=rev
Log:
freeciv-manual: show what unit obsoletes a unit.

See hrm Feature #659174

Modified:
    trunk/tools/civmanual.c

Modified: trunk/tools/civmanual.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/civmanual.c?rev=35516&r1=35515&r2=35516&view=diff
==============================================================================
--- trunk/tools/civmanual.c     (original)
+++ trunk/tools/civmanual.c     Fri May 12 14:55:00 2017
@@ -616,6 +616,12 @@
         fprintf(doc, SUBITEM_BEGIN, "hitpoints");
         fprintf(doc, _("Hitpoints: %d"),
                 putype->hp);
+        fprintf(doc, SUBITEM_END);
+        fprintf(doc, SUBITEM_BEGIN, "obsolete");
+        fprintf(doc, _("Obsolete by: %s"),
+                U_NOT_OBSOLETED == putype->obsoleted_by ?
+                  Q_("?utype:None") :
+                  utype_name_translation(putype->obsoleted_by));
         fprintf(doc, SUBITEM_END);
         fprintf(doc, SUBITEM_BEGIN, "helptext");
         helptext_unit(buf, sizeof(buf), NULL, "", putype);


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

Reply via email to