Author: mir3x
Date: Sun Feb 12 20:05:29 2017
New Revision: 35012

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

See gna patch #8113


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

Modified: branches/S2_6/client/gui-qt/helpdlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/helpdlg.cpp?rev=35012&r1=35011&r2=35012&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/helpdlg.cpp     (original)
+++ branches/S2_6/client/gui-qt/helpdlg.cpp     Sun Feb 12 20:05:29 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