Author: mir3x
Date: Sun Feb 12 20:05:38 2017
New Revision: 35013

URL: http://svn.gna.org/viewcvs/freeciv?rev=35013&view=rev
Log:
Qt client - show nations flags in help tree

See gna patch #8113


Modified:
    branches/S3_0/client/gui-qt/helpdlg.cpp

Modified: branches/S3_0/client/gui-qt/helpdlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/gui-qt/helpdlg.cpp?rev=35013&r1=35012&r2=35013&view=diff
==============================================================================
--- branches/S3_0/client/gui-qt/helpdlg.cpp     (original)
+++ branches/S3_0/client/gui-qt/helpdlg.cpp     Sun Feb 12 20:05:38 2017
@@ -187,6 +187,7 @@
   struct extra_type *pextra;
   struct government *gov;
   struct impr_type *imp;
+  struct nation_type *nation;
   struct terrain *pterrain;
   struct unit_type *f_type;
   struct drawn_sprite sprs[80];
@@ -234,7 +235,13 @@
           icon = QIcon(*spite->pm);
         }
         break;
-
+      case HELP_NATIONS:
+        nation = nation_by_translated_plural(s);
+        spite = get_nation_flag_sprite(tileset, nation);
+        if (spite) {
+            icon = QIcon(*spite->pm);
+        }
+        break;
       case HELP_TECH:
         padvance  = advance_by_translated_name(s);
         if (padvance && !is_future_tech(i = advance_number(padvance))) {


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

Reply via email to