Author: sveinung
Date: Mon Oct 24 13:54:19 2016
New Revision: 34239

URL: http://svn.gna.org/viewcvs/freeciv?rev=34239&view=rev
Log:
help: show tech class to global observers.

See bug #25213

Modified:
    trunk/client/helpdata.c

Modified: trunk/client/helpdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/helpdata.c?rev=34239&r1=34238&r2=34239&view=diff
==============================================================================
--- trunk/client/helpdata.c     (original)
+++ trunk/client/helpdata.c     Mon Oct 24 13:54:19 2016
@@ -2211,17 +2211,17 @@
     return;
   }
 
+  if (game.control.num_tech_classes > 0) {
+    if (vap->tclass == NULL) {
+      cat_snprintf(buf, bufsz, _("Belongs to the default tech class.\n\n"));
+    } else {
+      cat_snprintf(buf, bufsz, _("Belongs to tech class %s.\n\n"),
+                   tech_class_name_translation(vap->tclass));
+    }
+  }
+
   if (NULL != pplayer) {
     const struct research *presearch = research_get(pplayer);
-
-    if (game.control.num_tech_classes > 0) {
-      if (vap->tclass == NULL) {
-        cat_snprintf(buf, bufsz, _("Belongs to the default tech class.\n\n"));
-      } else {
-        cat_snprintf(buf, bufsz, _("Belongs to tech class %s.\n\n"),
-                     tech_class_name_translation(vap->tclass));
-      }
-    }
 
     if (research_invention_state(presearch, i) != TECH_KNOWN) {
       if (research_invention_state(presearch, i) == TECH_PREREQS_KNOWN) {


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

Reply via email to